mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
Improve unit tests for default and blacklisted plugins
This commit is contained in:
parent
e33a071f3e
commit
58d369cc31
1 changed files with 10 additions and 0 deletions
|
|
@ -178,10 +178,20 @@ class ContextTest extends \Codeception\TestCase\Test
|
|||
$this->assertEquals(Context::getResponseMethod(), 'HTML');
|
||||
}
|
||||
|
||||
public function testDefaultPlugin()
|
||||
{
|
||||
$this->assertTrue(Context::isDefaultPlugin('board', 'module'));
|
||||
$this->assertFalse(Context::isDefaultPlugin('board', 'widget'));
|
||||
$this->assertTrue(Context::isDefaultPlugin('xedition', 'layout'));
|
||||
$this->assertFalse(Context::isDefaultPlugin('xedition', 'addon'));
|
||||
}
|
||||
|
||||
public function testBlacklistedPlugin()
|
||||
{
|
||||
$this->assertTrue(Context::isBlacklistedPlugin('autolang'));
|
||||
$this->assertFalse(Context::isBlacklistedPlugin('autolang', 'module'));
|
||||
$this->assertFalse(Context::isBlacklistedPlugin('document'));
|
||||
$this->assertTrue(Context::isBlacklistedPlugin('jquerycdn', 'addon'));
|
||||
}
|
||||
|
||||
public function testReservedWord()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue