plugin = Factory::getInstance('plugins')->get('auth'); } public function testFoundation() { $this->assertInstanceOf(AuthenticationPlugin::class, $this->plugin); } /** * @depends testFoundation */ public function testGetConfig() { // Assert instance $this->assertInstanceOf(ConfigORM::class, $this->plugin->getConfig()); // Assert contents $this->assertEquals('auth', $this->plugin->getConfig()->get('auth_url')); } /** * @depends testGetConfig */ public function testGetAuthenticationUrl() { $this->assertEquals('/auth', $this->plugin->getAuthenticationUrl()); } }