Home
last modified time | relevance | path

Searched full:expected (Results 1 – 25 of 75) sorted by relevance

123

/dokuwiki/lib/scripts/
H A Dlinkwiz.test.js14 { ref: 'a:b:c', id: 'a:b:d', expected: 'd' }, property
15 { ref: 'a:b:c', id: 'a:b:c:d:e', expected: '.:c:d:e' }, property
16 { ref: 'a:b:c', id: 'a:b:c:d:e', expected: '.:c:d:e' }, property
17 { ref: 'a', id: 'a:b:c', expected: 'a:b:c' }, property
18 { ref: 'a:b', id: 'c:d', expected: 'c:d' }, property
19 { ref: 'a:b:c', id: 'a:d:e', expected: '..:d:e' }, property
20 { ref: 'a:b:c:d', id: 'a:d:e', expected: '..:..:d:e' }, property
21 { ref: 'a:b', id: 'c', expected: ':c' }, property
24 testCases.forEach(({ ref, id, expected }, index) => { property
26 if (result === expected) {
[all …]
/dokuwiki/lib/plugins/authplain/_test/
H A Duserdata.test.php32 … $expected = ['user', 'first_group', 'second_group', 'third_group', 'fourth_group', 'fifth_group'];
34 $this->assertEquals($expected, $actual);
42 $expected = ['user', 'first_group'];
44 $this->assertEquals($expected, $actual);
46 … $expected = ['user', 'first_group', 'second_group', 'third_group', 'fourth_group', 'fifth_group'];
48 $this->assertEquals($expected, $actual);
56 $expected = ['third_group', 'fourth_group', 'fifth_group'];
58 $this->assertEquals($expected, $actual);
60 $expected = [];
62 $this->assertEquals($expected, $actual);
H A Descaping.test.php129 * @param string $expected
132 public function testCleaning($input, $expected) argument
134 $this->assertEquals($expected, $this->auth->cleanUser($input));
135 $this->assertEquals($expected, $this->auth->cleanGroup($input));
/dokuwiki/_test/tests/inc/parser/
H A Drenderer_xhtml.test.php29 $expected = '<div class="table"><table class="inline">'."\n";
30 $this->assertEquals($expected, $this->R->doc);
36 $expected = '<div class="table"><table class="inline">'."\n";
37 $this->assertEquals($expected, $this->R->doc);
43 $expected = '<div class="table"><table class="inline">'."\n";
44 $this->assertEquals($expected, $this->R->doc);
50 $expected = '<div class="table sectionedit1"><table class="inline">'."\n";
51 $this->assertEquals($expected, $this->R->doc);
57 $expected = '<div class="table feature sectionedit1"><table class="inline">'."\n";
58 $this->assertEquals($expected, $this->R->doc);
[all …]
H A Drenderer_metadata.test.php43 $expected = 'abstract: abstract end.';
44 $this->assertEquals($expected, $this->R->meta['description']['abstract']);
/dokuwiki/_test/tests/TreeBuilder/
H A DControlPageBuilderTest.php22 $expected = [
38 sort($expected);
41 $this->assertEquals($expected, $result);
66 'expected' => [
83 'expected' => [
99 'expected' => [
109 * @param array $expected
112 public function testComplexParsing(int $flags, array $expected) argument
119 sort($expected);
122 $this->assertEquals($expected, $result);
H A DPageTreeBuilderTest.php47 'expected' => [
63 'expected' => [
77 'expected' => [
89 'expected' => [
99 'expected' => [
108 'expected' => [
121 'expected' => [
130 'expected' => [
150 …lic function testPageTreeConfigurations(string $namespace, int $depth, int $flags, array $expected) argument
159 sort($expected);
[all …]
/dokuwiki/lib/plugins/usermanager/_test/
H A Dcsv_export.test.php24 * expected to be: testuser:179ad45c6ce2cb97cf1029e212046e81:Arthur Dent:arthur@example.com
27 $expected = 'User,"Real Name",Email,Groups
30 $this->assertEquals($expected, $this->usermanager->tryExport());
47 $expected = 'Benutzername,"Voller Name",E-Mail,Gruppen
50 $this->assertEquals($expected, $this->usermanager->tryExport());
H A Dcsv_import.test.php66 …quals($expectedResult, $result); // import result as expected
67 …rt_count); // number of new users matches expected number imported
72 …sertEquals($expectedFailures, $this->usermanager->getImportFailures()); // failures as expected
97 $expected = array(
105 $this->doImportTest($csv, true, $expected, array());
134 $expected = array(
142 $this->doImportTest($csv, true, $expected, array());
153 $expected = array(
161 $this->doImportTest($csv, true, $expected, array());
/dokuwiki/_test/tests/inc/
H A Dutf8_strtolower.test.php27 * @param string $expected
29 public function testGivens($input, $expected) argument
31 $this->assertEquals($expected, \dokuwiki\Utf8\PhpString::strtolower($input));
33 $this->assertEquals($expected, mb_strtolower($input, 'utf-8'), 'mbstring check');
H A Dpageutils_nons.test.php8 public function test_noNS($input, $expected) argument
13 $this->assertSame($expected, noNS($input), $input);
29 public function test_noNSorNS($input, $expected) argument
34 $this->assertSame($expected, noNSorNS($input), $input);
H A Dutf8_stripspecials.test.php30 * @param string $expected
33 function testGivens($string, $replacement, $additional, $expected) argument
35 …$this->assertEquals($expected, \dokuwiki\Utf8\Clean::stripspecials($string, $replacement, $additio…
H A Dstyleutils_cssstyleini.test.php8 $expected = array (
34 array_diff_assoc($expected['stylesheets']['screen'], $actual['stylesheets']['screen'])
39 array_diff_assoc($expected['replacements'], $actual['replacements'])
H A DIpTest.php90 * @param bool $expected The expected result from ipInRange().
94 public function test_ip_in_range(string $ip, string $range, bool $expected): void argument
98 $this->assertSame($expected, $result);
135 * @param bool $expected The expeced result from ipMatches().
139 public function test_ip_matches(string $ip, string $ipOrRange, bool $expected): void argument
143 $this->assertSame($expected, $result);
200 * @param bool $expected The expected result from proxyIsTrusted().
202 public function test_proxy_is_trusted($config, string $ip, bool $expected): void argument
209 $this->assertSame($expected, $result);
283 * @param array $expected The expected result from forwardedFor().
[all …]
H A Dmedia_searchlist.test.php93 * @param string[] $expected The expected media IDs in the result HTML
96 public function testSearch($query, $expected) argument
107 $this->assertEquals(count($expected), count($elements));
108 $this->assertEquals($expected, $actual);
H A Dcommon_clientip.test.php91 * @param string $expected The expected function result.
95 …dr, bool $useRealIp, string $realIp, string $forwardedFor, bool $single, string $expected) : void { argument
113 …rtEquals(str_replace(array_keys($addresses), array_values($addresses), $expected), clientIP($singl…
127 * @param string $expected The expected function result.
131 …dr, bool $useRealIp, string $realIp, string $forwardedFor, bool $single, string $expected) : void { argument
149 …rtEquals(str_replace(array_keys($addresses), array_values($addresses), $expected), clientIP($singl…
H A Dtoolbar.test.php15 $expected = '"\" --- \\\n \/\/[[example@example.org|\/*!]]>*\/<\/script><script>'.
18 $this->assertEquals($expected, toolbar_signature());
/dokuwiki/lib/plugins/extension/_test/
H A DInstallerTest.php52 * @param array $expected
54 public function testFindExtensions($dir, $expected) argument
58 $this->assertEquals(count($expected), count($list), 'number of extensions found');
62 $this->assertArrayHasKey($base, $expected, 'extension found');
63 $this->assertEquals($expected[$base], $ext->getType(), 'extension type');
/dokuwiki/_test/tests/Remote/
H A DXmlRpcServerTest.php44 $expected = <<<EOD
67 $this->assertXmlStringEqualsXmlString(trim($expected), trim($this->server->output));
84 $expected = <<<EOD
107 $this->assertXmlStringEqualsXmlString(trim($expected), trim($this->server->output));
118 $expected = <<<EOD
145 $this->assertXmlStringEqualsXmlString(trim($expected), trim($this->server->output));
H A DApiCoreTest.php60 protected function assertEqualResult($expected, $actual, $msg = '') argument
65 sort($expected);
68 $expected = json_decode(json_encode($expected), true);
70 $this->assertEquals($expected, $actual, $msg);
171 $expected = [
192 $expected,
214 $expected = [
236 $expected,
254 $expected = [
273 $expected,
[all …]
/dokuwiki/lib/plugins/config/_test/Setting/
H A DSettingTest.php31 * @param string $out The expected output (for conf[test])
56 * Check if shouldBeSaved works as expected
61 * @param bool $expect The expected outcome
/dokuwiki/inc/
H A DLogger.php24 /** @var string[] a list of expected log messages, only used during unit testing */
25 protected $expected = []; variable in dokuwiki\\Logger
179 $this->expected[] = $log;
246 if ($this->expected) {
247 $expected = array_shift($this->expected);
248 if (!str_contains($lines[0], $expected)) {
251 "Expected: $expected\n" .
/dokuwiki/_test/tests/
H A DInfoTest.php53 public function testParseVersionString($version, $expected) argument
55 $this->assertEquals($expected, \dokuwiki\Info::parseVersionString($version));
/dokuwiki/_test/tests/Remote/OpenApiDoc/
H A DTypeTest.php88 * @param $expected
92 public function testSubType($typehint, $expected, $context = '') argument
101 $this->assertEquals($expected, $result);
/dokuwiki/_test/tests/File/
H A DPageResolverTest.php95 * @param string $expected
97 public function testResolveID($context, $id, $expected) argument
100 $this->assertEquals($expected, $resolver->resolveId($id));
182 * @param string $expected
184 public function testResolveRelatives($input, $expected) argument
189 $this->assertEquals($expected, $actual);

123