mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
Add list of reserved words #763
This commit is contained in:
parent
fae2a05b6f
commit
97047d1279
6 changed files with 83 additions and 7 deletions
|
|
@ -85,4 +85,16 @@ class ContextTest extends \Codeception\TestCase\Test
|
|||
Context::setResponseMethod('HTML');
|
||||
$this->assertEquals(Context::getResponseMethod(), 'HTML');
|
||||
}
|
||||
|
||||
public function testBlacklistedPlugin()
|
||||
{
|
||||
$this->assertTrue(Context::isBlacklistedPlugin('autolang'));
|
||||
$this->assertFalse(Context::isBlacklistedPlugin('document'));
|
||||
}
|
||||
|
||||
public function testReservedWord()
|
||||
{
|
||||
$this->assertTrue(Context::isReservedWord('mid'));
|
||||
$this->assertFalse(Context::isReservedWord('foo'));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue