This repository was archived by the owner on Oct 27, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 8 files changed +35
-22
lines changed
tests/TestCase/Controller Expand file tree Collapse file tree 8 files changed +35
-22
lines changed Original file line number Diff line number Diff line change @@ -18,17 +18,23 @@ class ActsControllerTest extends IntegrationTestCase
1818 'app.acts ' ,
1919 'app.albums ' ,
2020 'app.albums_files ' ,
21+ 'app.albums_tags ' ,
2122 'app.files ' ,
2223 'app.languages ' ,
24+ 'app.files_tags ' ,
2325 'app.notes ' ,
26+ 'app.notes_tags ' ,
2427 'app.users ' ,
2528 'app.posts ' ,
29+ 'app.posts_tags ' ,
2630 'app.licenses ' ,
2731 'app.projects ' ,
2832 'app.projects_albums ' ,
2933 'app.projects_files ' ,
3034 'app.projects_notes ' ,
3135 'app.projects_posts ' ,
36+ 'app.projects_tags ' ,
37+ 'app.tags ' ,
3238 ];
3339
3440 /**
Original file line number Diff line number Diff line change @@ -15,12 +15,17 @@ class FilesControllerTest extends BaseTextCase
1515 * @var array
1616 */
1717 public $ fixtures = [
18- 'app.languages ' , // Needed for some layout vars
19- 'app.files ' ,
20- // Relations
2118 'app.acts ' ,
19+ 'app.albums ' ,
20+ 'app.albums_files ' ,
21+ 'app.files ' ,
22+ 'app.files_tags ' ,
23+ 'app.languages ' , // Needed for some layout vars
2224 'app.languages ' ,
2325 'app.licenses ' ,
26+ 'app.projects ' ,
27+ 'app.projects_files ' ,
28+ 'app.tags ' ,
2429 'app.users ' ,
2530 ];
2631
@@ -32,7 +37,6 @@ public function testIndex()
3237 // Set session data
3338 $ this ->session ($ this ->userCreds ['admin ' ]);
3439 $ this ->get ('/admin/files ' );
35-
3640 // No error
3741 $ this ->assertResponseOk ();
3842 }
@@ -97,8 +101,5 @@ public function testChangeStateToLocked()
97101
98102 // Error
99103 $ this ->assertResponseError ();
100-
101- // Ajax
102- $ this ->markTestIncomplete ('Missing ajax test ' );
103104 }
104105}
Original file line number Diff line number Diff line change @@ -15,11 +15,15 @@ class NotesControllerTest extends BaseTextCase
1515 * @var array
1616 */
1717 public $ fixtures = [
18+ 'app.acts ' ,
1819 'app.languages ' , // Needed for some layout vars
1920 'app.licenses ' ,
2021 'app.notes ' ,
22+ 'app.notes_tags ' ,
23+ 'app.projects ' ,
24+ 'app.projects_notes ' ,
25+ 'app.tags ' ,
2126 'app.users ' ,
22- 'app.acts '
2327 ];
2428
2529 /**
Original file line number Diff line number Diff line change @@ -17,10 +17,13 @@ class PostsControllerTest extends BaseTextCase
1717 public $ fixtures = [
1818 'app.languages ' , // Needed for some layout vars
1919 'app.posts ' ,
20- // Relations
20+ ' app.posts_tags ' ,
2121 'app.acts ' ,
2222 'app.languages ' ,
2323 'app.licenses ' ,
24+ 'app.projects ' ,
25+ 'app.projects_posts ' ,
26+ 'app.tags ' ,
2427 'app.users ' ,
2528 ];
2629
@@ -98,8 +101,5 @@ public function testChangeStateToLocked()
98101
99102 // Error
100103 $ this ->assertResponseError ();
101-
102- // Ajax
103- $ this ->markTestIncomplete ('Missing ajax test ' );
104104 }
105105}
Original file line number Diff line number Diff line change @@ -15,12 +15,12 @@ class ProjectsControllerTest extends BaseTextCase
1515 * @var array
1616 */
1717 public $ fixtures = [
18- 'app.languages ' , // Needed for some layout vars
19- 'app.projects ' ,
20- // Relations
2118 'app.acts ' ,
22- 'app.languages ' ,
19+ 'app.languages ' , // Needed for some layout vars
2320 'app.licenses ' ,
21+ 'app.projects ' ,
22+ 'app.projects_tags ' ,
23+ 'app.tags ' ,
2424 'app.users ' ,
2525 ];
2626
@@ -97,8 +97,5 @@ public function testChangeStateToLocked()
9797
9898 // Error
9999 $ this ->assertResponseError ();
100-
101- // Ajax
102- $ this ->markTestIncomplete ('Missing ajax test ' );
103100 }
104101}
Original file line number Diff line number Diff line change @@ -16,15 +16,19 @@ class FilesControllerTest extends IntegrationTestCase
1616 */
1717 public $ fixtures = [
1818 'app.comments ' ,
19+ 'app.albums ' ,
20+ 'app.albums_files ' ,
1921 'app.files ' ,
22+ 'app.files_tags ' ,
2023 'app.languages ' ,
2124 'app.users ' ,
2225 'app.licenses ' ,
2326 'app.tags ' ,
2427 'app.files_tags ' ,
2528 'app.projects ' ,
26- 'app.projects_files '
27-
29+ 'app.projects_files ' ,
30+ 'app.projects_tags ' ,
31+ 'app.tags ' ,
2832 ];
2933
3034 /**
Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ class TagsControllerTest extends IntegrationTestCase
1919 'app.tags ' ,
2020 'app.albums ' ,
2121 'app.users ' ,
22- 'app.social_accounts ' ,
2322 'app.files ' ,
2423 'app.languages ' ,
2524 'app.notes ' ,
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ class FilesControllerTest extends BaseTextCase
1818 'app.acts ' ,
1919 'app.albums ' ,
2020 'app.albums_files ' ,
21+ 'app.albums_tags ' ,
2122 'app.files ' ,
2223 'app.files_tags ' ,
2324 'app.languages ' , // Needed for some layout vars
@@ -43,6 +44,7 @@ public function testIndex() //nsfw //status
4344 $ this ->get ('/user/files ' );
4445 $ nb = count ($ this ->_controller ->viewVars ['files ' ]);
4546 $ this ->assertEquals (5 , $ nb );
47+ // $this->assertResponseEquals('');
4648 $ this ->assertResponseOk ();
4749
4850 // Sfw filter
You can’t perform that action at this time.
0 commit comments