mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-02-04 00:19:36 +00:00
Fixed code style.
This commit is contained in:
parent
2853e471c4
commit
d0b1024d80
212 changed files with 495 additions and 1005 deletions
|
|
@ -90,7 +90,7 @@ abstract class AbstractAdminControllerTest extends WebTestCase
|
|||
$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!');
|
||||
$this->assertSame($read, !$client->getResponse()->isForbidden(), 'Permission Checking not working!');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -115,7 +115,7 @@ abstract class AbstractAdminControllerTest extends WebTestCase
|
|||
$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!');
|
||||
$this->assertSame($read, !$client->getResponse()->isForbidden(), 'Permission Checking not working!');
|
||||
}
|
||||
|
||||
public function deleteDataProvider(): array
|
||||
|
|
@ -152,6 +152,6 @@ abstract class AbstractAdminControllerTest extends WebTestCase
|
|||
|
||||
//Page is redirected to '/new', when delete was successful
|
||||
$this->assertSame($delete, $client->getResponse()->isRedirect(static::$base_path.'/new'));
|
||||
$this->assertSame($delete, ! $client->getResponse()->isForbidden(), 'Permission Checking not working!');
|
||||
$this->assertSame($delete, !$client->getResponse()->isForbidden(), 'Permission Checking not working!');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -55,6 +55,6 @@ class LabelProfileControllerTest extends AbstractAdminControllerTest
|
|||
|
||||
//Page is redirected to '/new', when delete was successful
|
||||
$this->assertSame($delete, $client->getResponse()->isRedirect(static::$base_path.'/new'));
|
||||
$this->assertSame($delete, ! $client->getResponse()->isForbidden(), 'Permission Checking not working!');
|
||||
$this->assertSame($delete, !$client->getResponse()->isForbidden(), 'Permission Checking not working!');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ class AttachmentPathResolverTest extends WebTestCase
|
|||
$this->assertSame(self::$projectDir_orig, self::$service->parameterToAbsolutePath(self::$projectDir));
|
||||
|
||||
//Relative pathes should be resolved
|
||||
$expected = str_replace('\\', '/',self::$projectDir_orig.DIRECTORY_SEPARATOR.'src');
|
||||
$expected = str_replace('\\', '/', self::$projectDir_orig.DIRECTORY_SEPARATOR.'src');
|
||||
$this->assertSame($expected, self::$service->parameterToAbsolutePath('src'));
|
||||
$this->assertSame($expected, self::$service->parameterToAbsolutePath('./src'));
|
||||
|
||||
|
|
|
|||
|
|
@ -65,7 +65,8 @@ class LabelGeneratorTest extends WebTestCase
|
|||
$this->assertTrue($this->service->supports($options, new $class()));
|
||||
|
||||
//Ensure that another class is not supported
|
||||
$not_supported = new class() extends AbstractDBElement {};
|
||||
$not_supported = new class() extends AbstractDBElement {
|
||||
};
|
||||
|
||||
$this->assertFalse($this->service->supports($options, $not_supported));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue