mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 09:35:49 +02:00
Removed unused variables.
This commit is contained in:
parent
3671c94844
commit
0fe83c7b3a
18 changed files with 14 additions and 29 deletions
|
@ -87,7 +87,7 @@ abstract class AbstractAdminControllerTest extends WebTestCase
|
|||
$client->catchExceptions(false);
|
||||
|
||||
//Test read/list access by access /new overview page
|
||||
$crawler = $client->request('GET', static::$base_path.'/new');
|
||||
$client->request('GET', static::$base_path.'/new');
|
||||
$this->assertFalse($client->getResponse()->isRedirect());
|
||||
$this->assertSame($read, $client->getResponse()->isSuccessful(), 'Controller was not successful!');
|
||||
$this->assertSame($read, ! $client->getResponse()->isForbidden(), 'Permission Checking not working!');
|
||||
|
@ -112,7 +112,7 @@ abstract class AbstractAdminControllerTest extends WebTestCase
|
|||
}
|
||||
|
||||
//Test read/list access by access /new overview page
|
||||
$crawler = $client->request('GET', static::$base_path.'/1');
|
||||
$client->request('GET', static::$base_path.'/1');
|
||||
$this->assertFalse($client->getResponse()->isRedirect());
|
||||
$this->assertSame($read, $client->getResponse()->isSuccessful(), 'Controller was not successful!');
|
||||
$this->assertSame($read, ! $client->getResponse()->isForbidden(), 'Permission Checking not working!');
|
||||
|
@ -148,7 +148,7 @@ abstract class AbstractAdminControllerTest extends WebTestCase
|
|||
}
|
||||
|
||||
//Test read/list access by access /new overview page
|
||||
$crawler = $client->request('DELETE', static::$base_path.'/7');
|
||||
$client->request('DELETE', static::$base_path.'/7');
|
||||
|
||||
//Page is redirected to '/new', when delete was successful
|
||||
$this->assertSame($delete, $client->getResponse()->isRedirect(static::$base_path.'/new'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue