mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 14:43:49 +00:00
Merge branch 'master' into notification/completion
This commit is contained in:
@@ -140,8 +140,7 @@ abstract class AbstractAggregatorTest extends KernelTestCase
|
||||
{
|
||||
$filter = $this->getAggregator();
|
||||
|
||||
$this->assertInternalType(
|
||||
'string',
|
||||
$this->assertIsString(
|
||||
$filter->applyOn(),
|
||||
'test that the internal type of "applyOn" is a string'
|
||||
);
|
||||
@@ -160,8 +159,7 @@ abstract class AbstractAggregatorTest extends KernelTestCase
|
||||
{
|
||||
$queryKeys = $this->getAggregator()->getQueryKeys($data);
|
||||
|
||||
$this->assertInternalType(
|
||||
'array',
|
||||
$this->assertIsArray(
|
||||
$queryKeys,
|
||||
'test that the query keys returned are an array'
|
||||
);
|
||||
@@ -252,7 +250,7 @@ abstract class AbstractAggregatorTest extends KernelTestCase
|
||||
{
|
||||
$title = $this->getAggregator()->getTitle();
|
||||
|
||||
$this->assertInternalType('string', $title);
|
||||
$this->assertIsString($title);
|
||||
$this->assertNotEmpty(
|
||||
$title,
|
||||
'test that the title is not empty'
|
||||
|
@@ -151,8 +151,7 @@ abstract class AbstractExportTest extends WebTestCase
|
||||
{
|
||||
$export = $this->getExport();
|
||||
|
||||
$this->assertInternalType(
|
||||
'string',
|
||||
$this->assertIsString(
|
||||
$export->getDescription(),
|
||||
'Assert that the `getDescription` method return a string'
|
||||
);
|
||||
@@ -214,8 +213,7 @@ abstract class AbstractExportTest extends WebTestCase
|
||||
|
||||
$results = $this->getExport()->getResult($query, $data);
|
||||
|
||||
$this->assertInternalType(
|
||||
'array',
|
||||
$this->assertIsArray(
|
||||
$results,
|
||||
'assert that the returned result is an array'
|
||||
);
|
||||
@@ -271,8 +269,7 @@ abstract class AbstractExportTest extends WebTestCase
|
||||
{
|
||||
$export = $this->getExport();
|
||||
|
||||
$this->assertInternalType(
|
||||
'string',
|
||||
$this->assertIsString(
|
||||
$export->getType(),
|
||||
'Assert that the `getType` method return a string'
|
||||
);
|
||||
|
@@ -126,7 +126,7 @@ abstract class AbstractFilterTest extends KernelTestCase
|
||||
{
|
||||
$filter = $this->getFilter();
|
||||
|
||||
$this->assertInternalType('string', $filter->applyOn());
|
||||
$this->assertIsString($filter->applyOn());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -149,8 +149,7 @@ abstract class AbstractFilterTest extends KernelTestCase
|
||||
'test that the description is not empty'
|
||||
);
|
||||
} elseif (is_array($description)) {
|
||||
$this->assertInternalType(
|
||||
'string',
|
||||
$this->assertIsString(
|
||||
$description[0],
|
||||
'test that the first element in the description array is a string'
|
||||
);
|
||||
@@ -191,7 +190,7 @@ abstract class AbstractFilterTest extends KernelTestCase
|
||||
{
|
||||
$title = $this->getFilter()->getTitle();
|
||||
|
||||
$this->assertInternalType('string', $title);
|
||||
$this->assertIsString($title);
|
||||
$this->assertNotEmpty(
|
||||
$title,
|
||||
'test that the title is not empty'
|
||||
|
@@ -72,6 +72,6 @@ final class CenterControllerTest extends WebTestCase
|
||||
$crawler = $client->request('GET', '/fr/admin/center/');
|
||||
|
||||
// Check the entity has been delete on the list
|
||||
$this->assertRegExp('/Foo/', $client->getResponse()->getContent());
|
||||
$this->assertMatchesRegularExpression('/Foo/', $client->getResponse()->getContent());
|
||||
}
|
||||
}
|
||||
|
@@ -40,7 +40,7 @@ final class LoginControllerTest extends WebTestCase
|
||||
$this->assertTrue($client->getResponse()->isRedirect());
|
||||
|
||||
//the response is not a login page, but on a new page
|
||||
$this->assertNotRegExp('/\/login$/', $client->getResponse()
|
||||
$this->assertDoesNotMatchRegularExpression('/\/login$/', $client->getResponse()
|
||||
->headers
|
||||
->get('location'));
|
||||
|
||||
@@ -48,7 +48,7 @@ final class LoginControllerTest extends WebTestCase
|
||||
$client->followRedirects(true);
|
||||
$crawler = $client->request('GET', '/');
|
||||
|
||||
$this->assertRegExp('/center a_social/', $client->getResponse()
|
||||
$this->assertMatchesRegularExpression('/center a_social/', $client->getResponse()
|
||||
->getContent());
|
||||
$logoutLinkFilter = $crawler->filter('a:contains("Se déconnecter")');
|
||||
|
||||
@@ -63,7 +63,7 @@ final class LoginControllerTest extends WebTestCase
|
||||
$client->followRedirect(); //redirect to login page
|
||||
|
||||
//check we are back on login page
|
||||
$this->assertRegExp('/\/login$/', $client->getResponse()
|
||||
$this->assertMatchesRegularExpression('/\/login$/', $client->getResponse()
|
||||
->headers
|
||||
->get('location'));
|
||||
}
|
||||
|
@@ -66,7 +66,7 @@ final class PermissionsGroupControllerTest extends WebTestCase
|
||||
$crawler = $client->followRedirect();
|
||||
|
||||
// Check the entity has been delete on the list
|
||||
$this->assertNotRegExp('/Foo/', $client->getResponse()->getContent());
|
||||
$this->assertDoesNotMatchRegularExpression('/Foo/', $client->getResponse()->getContent());
|
||||
}
|
||||
|
||||
*/
|
||||
|
@@ -48,7 +48,7 @@ final class TokenManagerTest extends KernelTestCase
|
||||
|
||||
$tokens = $tokenManager->generate($user, $expiration);
|
||||
|
||||
$this->assertInternalType('array', $tokens);
|
||||
$this->assertIsArray($tokens);
|
||||
$this->assertArrayHasKey('h', $tokens);
|
||||
$this->assertArrayHasKey('t', $tokens);
|
||||
$this->assertNotEmpty($tokens['h']);
|
||||
|
@@ -48,6 +48,6 @@ final class MenuComposerTest extends KernelTestCase
|
||||
|
||||
$routes = $this->menuComposer->getRoutesFor('dummy0');
|
||||
|
||||
$this->assertInternalType('array', $routes);
|
||||
$this->assertIsArray($routes);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user