Skip to content
This repository was archived by the owner on May 1, 2019. It is now read-only.

Commit 7c80ed1

Browse files
localheinzGianluca Arbezzano
authored andcommitted
Fix: Remove non module from test arrangement
1 parent 56b2388 commit 7c80ed1

1 file changed

Lines changed: 6 additions & 9 deletions

File tree

module/ZfModule/test/ZfModuleTest/Integration/Controller/IndexControllerTest.php

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)