for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/**
* Saito - The Threaded Web Forum
*
* @copyright Copyright (c) the Saito Project Developers
* @link https://github.com/Schlaefer/Saito
* @license http://opensource.org/licenses/MIT
*/
namespace App\Test\TestCase\Controller\Admin;
use Cake\ORM\TableRegistry;
use Saito\Test\IntegrationTestCase;
* Class CategoriesControllerTest
* @package App\Test\TestCase\Controller\Admin
* @group App\Test\TestCase\Controller\Admin
class UsersControllerTest extends IntegrationTestCase
{
public $fixtures = [
'app.Category',
'app.Setting',
'app.User',
'app.UserBlock',
'app.UserRead',
'app.UserOnline',
];
public function setUp()
parent::setUp();
foreach (['Users'] as $table) {
$this->$table = TableRegistry::get($table);
Cake\ORM\TableRegistry::get()
If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated annotation
ignore-deprecated
$this->$table = /** @scrutinizer ignore-deprecated */ TableRegistry::get($table);
This function has been deprecated. The supplier of the function has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.
}
public function testUsersIndexAccess()
$this->assertRouteForRole('/admin/users/block', 'admin');
This function has been deprecated. The supplier of the function has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.