Skip to content

Commit 7231f92

Browse files
oliverkleeSam Tuke
authored andcommitted
[BUGFIX] Create list before access check integration test (#85)
The tests for access checks for cases where the list does not exist will follow in separate commits.
1 parent 2874fc4 commit 7231f92

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Tests/Integration/Controller/ListControllerTest.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,11 @@ public function getListsWithCurrentSessionKeyReturnsListData()
114114
/**
115115
* @test
116116
*/
117-
public function getListMembersWithoutSessionKeyReturnsForbiddenStatus()
117+
public function getListMembersForExistingListWithoutSessionKeyReturnsForbiddenStatus()
118118
{
119+
$this->getDataSet()->addTable(self::LISTS_TABLE_NAME, __DIR__ . '/Fixtures/SubscriberList.csv');
120+
$this->applyDatabaseChanges();
121+
119122
$this->client->request('get', '/api/v2/lists/1/members');
120123

121124
$this->assertHttpForbidden();
@@ -124,8 +127,9 @@ public function getListMembersWithoutSessionKeyReturnsForbiddenStatus()
124127
/**
125128
* @test
126129
*/
127-
public function getListMembersWithExpiredSessionKeyReturnsForbiddenStatus()
130+
public function getListMembersForExistingListWithExpiredSessionKeyReturnsForbiddenStatus()
128131
{
132+
$this->getDataSet()->addTable(self::LISTS_TABLE_NAME, __DIR__ . '/Fixtures/SubscriberList.csv');
129133
$this->getDataSet()->addTable(self::ADMINISTRATOR_TABLE_NAME, __DIR__ . '/Fixtures/Administrator.csv');
130134
$this->getDataSet()->addTable(self::TOKEN_TABLE_NAME, __DIR__ . '/Fixtures/AdministratorToken.csv');
131135
$this->applyDatabaseChanges();

0 commit comments

Comments
 (0)