/** * @covers FOF30\Platform\Joomla\Platform::authorise * * @dataProvider FOF30\Tests\Platform\PlatformJoomlaProvider::getTestAuthorise * */ public function testAuthorise($appType, $auths, $assetName, $action, $expected, $message) { $this->forceApplicationTypeAndResetPlatformCliAdminCache($appType); $fakeUser = new UserForAdminAuth(); $fakeUser->allowedAuths = $auths; MockSession::$user = $fakeUser; $actual = $this->platform->authorise($action, $assetName); $this->assertEquals($expected, $actual, $message); }