mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-05 23:15:50 +01:00
Removed unused variables.
This commit is contained in:
@@ -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'));
|
||||
|
||||
Reference in New Issue
Block a user