mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-28 10:33:49 +00:00
cs: Fix code style (safe rules only).
This commit is contained in:
@@ -1,9 +1,20 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Chill is a software for social workers
|
||||
*
|
||||
* For the full copyright and license information, please view
|
||||
* the LICENSE file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Chill\ThirdPartyBundle\Tests\Controller;
|
||||
|
||||
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
class ThirdPartyControllerTest extends WebTestCase
|
||||
{
|
||||
public function testIndex()
|
||||
@@ -26,5 +37,4 @@ class ThirdPartyControllerTest extends WebTestCase
|
||||
|
||||
$crawler = $client->request('GET', '/update');
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -1,11 +1,22 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Chill is a software for social workers
|
||||
*
|
||||
* For the full copyright and license information, please view
|
||||
* the LICENSE file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Chill\ThirdParty\Tests\Entity;
|
||||
|
||||
use Chill\ThirdPartyBundle\Entity\ThirdParty;
|
||||
use Chill\ThirdPartyBundle\Entity\ThirdPartyCategory;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
class ThirdPartyTest extends TestCase
|
||||
{
|
||||
public function testAddingRemovingActivityTypes()
|
||||
@@ -34,8 +45,10 @@ class ThirdPartyTest extends TestCase
|
||||
$tp->removeTypesAndCategories('type');
|
||||
$tp->removeTypesAndCategories($cat2);
|
||||
|
||||
$this->assertTrue($tp->getCategories()->contains($cat1),
|
||||
"test that cat1 is still present");
|
||||
$this->assertTrue(
|
||||
$tp->getCategories()->contains($cat1),
|
||||
'test that cat1 is still present'
|
||||
);
|
||||
$this->assertFalse($tp->getCategories()->contains($cat2));
|
||||
$this->assertCount(1, $tp->getCategories());
|
||||
|
||||
@@ -55,7 +68,7 @@ class ThirdPartyTest extends TestCase
|
||||
'type1',
|
||||
'type2',
|
||||
$cat1 = new ThirdPartyCategory(),
|
||||
$cat2 = new ThirdPartyCategory()
|
||||
$cat2 = new ThirdPartyCategory(),
|
||||
]);
|
||||
|
||||
$this->assertTrue($tp->getCategories()->contains($cat1));
|
||||
@@ -88,5 +101,4 @@ class ThirdPartyTest extends TestCase
|
||||
$this->assertContains('type1', $tp->getTypesAndCategories());
|
||||
$this->assertNotContains('type2', $tp->getTypesAndCategories());
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user