Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/HuasoFoundries/phpPgAdmin6.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/UserEntitiesTest.php')
-rw-r--r--tests/unit/UserEntitiesTest.php66
1 files changed, 0 insertions, 66 deletions
diff --git a/tests/unit/UserEntitiesTest.php b/tests/unit/UserEntitiesTest.php
deleted file mode 100644
index 066bdfc0..00000000
--- a/tests/unit/UserEntitiesTest.php
+++ /dev/null
@@ -1,66 +0,0 @@
-<?php
-
-/**
- * PHPPgAdmin6
- */
-
-/**
- * @internal
- * @coversNothing
- */
-class UserEntitiesTest extends \Codeception\Test\Unit
-{
- protected static $BASE_PATH;
-
- protected ?\PHPPgAdmin\ContainerUtils $container;
-
- /**
- * @var \UnitTester
- */
- protected $tester;
-
- // tests
-
- public function testGroupsView(): void
- {
- $_container = $this->container;
-
- require self::$BASE_PATH . '/tests/views/groups.php';
- $controller = groupsFactory($_container);
- self::assertSame($controller->controller_name, 'GroupsController', 'controller name should be GroupsController');
- }
-
- public function testPrivilegesView(): void
- {
- $_container = $this->container;
-
- require self::$BASE_PATH . '/tests/views/privileges.php';
- $controller = privilegesFactory($_container);
- self::assertSame($controller->controller_name, 'PrivilegesController', 'controller name should be PrivilegesController');
- }
-
- public function testRolesView(): void
- {
- $_container = $this->container;
-
- require self::$BASE_PATH . '/tests/views/roles.php';
- $controller = rolesFactory($_container);
- self::assertSame($controller->controller_name, 'RolesController', 'controller name should be RolesController');
- }
-
- public function testUsersView(): void
- {
- $_container = $this->container;
-
- require self::$BASE_PATH . '/tests/views/users.php';
- $controller = usersFactory($_container);
- self::assertSame($controller->controller_name, 'UsersController', 'controller name should be UsersController');
- }
-
- protected function _before(): void
- {
- $this->container = containerInstance();
- self::$BASE_PATH = $this->container->BASE_PATH;
- $this->container->get('misc')->setNoDBConnection(true);
- }
-}