Completed
Branch feature/Authentication4 (554da3)
by Schlaefer
03:43
created

SettingsControllerTest::testIndexAccess()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
/**
6
 * Saito - The Threaded Web Forum
7
 *
8
 * @copyright Copyright (c) the Saito Project Developers
9
 * @link https://github.com/Schlaefer/Saito
10
 * @license http://opensource.org/licenses/MIT
11
 */
12
13
namespace App\Test\TestCase\Controller\Admin;
14
15
use Cake\ORM\TableRegistry;
16
use Saito\Test\IntegrationTestCase;
17
18
/**
19
 * Class SettingsControllerTest
20
 */
21
class SettingsControllerTest extends IntegrationTestCase
22
{
23
    public $fixtures = [
24
        'app.Category',
25
        'app.Entry',
26
        'app.Setting',
27
        'app.User',
28
        'app.UserBlock',
29
        'app.UserIgnore',
30
        'app.UserRead',
31
        'app.UserOnline'
32
    ];
33
34
    public function testIndexAccess()
35
    {
36
        $this->assertRouteForRole('/admin/settings/index', 'admin');
37
    }
38
}
39