This repository was archived by the owner on May 1, 2019. It is now read-only.
File tree Expand file tree Collapse file tree
module/ZfModule/test/ZfModuleTest/Integration/Controller Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -84,21 +84,18 @@ public function testIndexActionFetches100MostRecentlyUpdatedUserRepositories()
8484 $ this ->assertResponseStatusCode (Http \Response::STATUS_CODE_200 );
8585 }
8686
87- public function testIndexActionRendersValidModulesOnly ()
87+ public function testIndexActionRendersUnregisteredModulesOnly ()
8888 {
8989 $ this ->authenticatedAs (new User ());
9090
91- $ validModule = $ this ->validModule ();
92-
93- $ nonModule = $ this ->nonModule ();
91+ $ unregisteredModule = $ this ->validModule ();
9492 $ registeredModule = $ this ->registeredModule ();
9593
9694 $ repositories = [
97- $ validModule ,
98- $ nonModule ,
95+ $ unregisteredModule ,
9996 $ registeredModule ,
100- $ this ->forkedModule (),
10197 $ this ->moduleWithoutPushPermissions (),
98+ $ this ->forkedModule (),
10299 ];
103100
104101 $ repositoryCollection = $ this ->repositoryCollectionMock ($ repositories );
@@ -172,8 +169,8 @@ public function testIndexActionRendersValidModulesOnly()
172169 $ viewVariable = $ viewModel ->getVariable ('repositories ' );
173170
174171 $ this ->assertInternalType ('array ' , $ viewVariable );
175- $ this ->assertCount (2 , $ viewVariable );
176- $ this ->assertSame ($ validModule , $ viewVariable [0 ]);
172+ $ this ->assertCount (1 , $ viewVariable );
173+ $ this ->assertSame ($ unregisteredModule , $ viewVariable [0 ]);
177174 }
178175
179176 public function testOrganizationActionRedirectsIfNotAuthenticated ()
You can’t perform that action at this time.
0 commit comments