Skip to content

Commit

Permalink
Replace deprecated testing code
Browse files Browse the repository at this point in the history
Signed-off-by: William Desportes <williamdes@wdes.fr>
  • Loading branch information
williamdes committed Mar 2, 2021
1 parent 9368b03 commit 51c5e19
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 12 deletions.
6 changes: 4 additions & 2 deletions tests/TestCase/Controller/DevelopersControllerTest.php
Expand Up @@ -19,7 +19,8 @@
namespace App\Test\TestCase\Controller;

use Cake\ORM\TableRegistry;
use Cake\TestSuite\IntegrationTestCase;
use Cake\TestSuite\IntegrationTestTrait;
use Cake\TestSuite\TestCase;
use phpmock\phpunit\PHPMock;
use const DS;
use function file_get_contents;
Expand All @@ -28,9 +29,10 @@
/**
* App\Controller\DevelopersController Test Case
*/
class DevelopersControllerTest extends IntegrationTestCase
class DevelopersControllerTest extends TestCase
{
use PHPMock;
use IntegrationTestTrait;

/**
* Fixtures.
Expand Down
7 changes: 5 additions & 2 deletions tests/TestCase/Controller/EventsControllerTest.php
Expand Up @@ -3,11 +3,14 @@
namespace App\Test\TestCase\Controller;

use Cake\ORM\TableRegistry;
use Cake\TestSuite\IntegrationTestCase;
use Cake\TestSuite\IntegrationTestTrait;
use Cake\TestSuite\TestCase;
use function json_encode;

class EventsControllerTest extends IntegrationTestCase
class EventsControllerTest extends TestCase
{
use IntegrationTestTrait;

/**
* Fixtures.
*
Expand Down
6 changes: 4 additions & 2 deletions tests/TestCase/Controller/GithubControllerTest.php
Expand Up @@ -20,7 +20,8 @@

use Cake\Core\Configure;
use Cake\ORM\TableRegistry;
use Cake\TestSuite\IntegrationTestCase;
use Cake\TestSuite\IntegrationTestTrait;
use Cake\TestSuite\TestCase;
use phpmock\phpunit\PHPMock;
use const DS;
use function file_get_contents;
Expand All @@ -30,9 +31,10 @@
/**
* App\Controller\GithubController Test Case
*/
class GithubControllerTest extends IntegrationTestCase
class GithubControllerTest extends TestCase
{
use PHPMock;
use IntegrationTestTrait;

/**
* Fixtures.
Expand Down
7 changes: 5 additions & 2 deletions tests/TestCase/Controller/IncidentsControllerTest.php
Expand Up @@ -4,14 +4,17 @@

use Cake\Core\Configure;
use Cake\ORM\TableRegistry;
use Cake\TestSuite\IntegrationTestCase;
use Cake\TestSuite\IntegrationTestTrait;
use Cake\TestSuite\TestCase;
use const DS;
use function count;
use function file_get_contents;
use function json_decode;

class IncidentsControllerTest extends IntegrationTestCase
class IncidentsControllerTest extends TestCase
{
use IntegrationTestTrait;

/**
* Fixtures.
*
Expand Down
7 changes: 5 additions & 2 deletions tests/TestCase/Controller/NotificationsControllerTest.php
Expand Up @@ -3,14 +3,17 @@
namespace App\Test\TestCase\Controller;

use Cake\ORM\TableRegistry;
use Cake\TestSuite\IntegrationTestCase;
use Cake\TestSuite\IntegrationTestTrait;
use Cake\TestSuite\TestCase;
use function json_decode;

/**
* NotificationsController Test Case.
*/
class NotificationsControllerTest extends IntegrationTestCase
class NotificationsControllerTest extends TestCase
{
use IntegrationTestTrait;

/**
* Fixtures.
*
Expand Down
7 changes: 5 additions & 2 deletions tests/TestCase/Controller/ReportsControllerTest.php
Expand Up @@ -3,12 +3,15 @@
namespace App\Test\TestCase\Controller;

use Cake\ORM\TableRegistry;
use Cake\TestSuite\IntegrationTestCase;
use Cake\TestSuite\IntegrationTestTrait;
use Cake\TestSuite\TestCase;
use function count;
use function json_decode;

class ReportsControllerTest extends IntegrationTestCase
class ReportsControllerTest extends TestCase
{
use IntegrationTestTrait;

/**
* Fixtures.
*
Expand Down

0 comments on commit 51c5e19

Please sign in to comment.