@@ -24,19 +24,18 @@ public function testPageList()
24
24
25
25
public function testPageEdit ()
26
26
{
27
- $ crawler = $ this ->client ->request ('GET ' , '/admin/cmf/simplecms/page/test/pages /homepage/edit ' );
27
+ $ crawler = $ this ->client ->request ('GET ' , '/admin/cmf/simplecms/page/test/page /homepage/edit ' );
28
28
$ res = $ this ->client ->getResponse ();
29
29
$ this ->assertEquals (200 , $ res ->getStatusCode ());
30
- $ this ->assertCount (1 , $ crawler ->filter ('input[value="homepage"] ' ));
30
+ $ this ->assertCount (2 , $ crawler ->filter ('input[value="homepage"] ' ));
31
31
}
32
32
33
33
public function testPageShow ()
34
34
{
35
- return ;
36
- $ crawler = $ this ->client ->request ('GET ' , '/admin/cmf/simplecms/page/test/pages/homepage/show ' );
35
+ $ crawler = $ this ->client ->request ('GET ' , '/admin/cmf/simplecms/page/test/page/homepage/show ' );
37
36
$ res = $ this ->client ->getResponse ();
38
37
$ this ->assertEquals (200 , $ res ->getStatusCode ());
39
- $ this ->assertCount (2 , $ crawler ->filter ('td :contains("test-page ") ' ));
38
+ $ this ->assertCount (1 , $ crawler ->filter ('html :contains("homepage ") ' ));
40
39
}
41
40
42
41
public function testPageCreate ()
@@ -51,9 +50,9 @@ public function testPageCreate()
51
50
$ actionUrl = $ node ->getAttribute ('action ' );
52
51
$ uniqId = substr (strchr ($ actionUrl , '= ' ), 1 );
53
52
54
- $ form [$ uniqId .'[parent] ' ] = '/test/pages ' ;
55
- $ form [$ uniqId .'[title ] ' ] = 'foo-page ' ;
56
- $ form [$ uniqId .'[label ] ' ] = 'Foo Page ' ;
53
+ $ form [$ uniqId .'[parent] ' ] = '/test/page ' ;
54
+ $ form [$ uniqId .'[name ] ' ] = 'foo-test ' ;
55
+ $ form [$ uniqId .'[title ] ' ] = 'Foo Test ' ;
57
56
58
57
$ this ->client ->submit ($ form );
59
58
$ res = $ this ->client ->getResponse ();
0 commit comments