mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Fix unit tests to remove warnings
This commit is contained in:
parent
bfe6be6535
commit
ad808a1058
2 changed files with 7 additions and 4 deletions
|
|
@ -39,6 +39,8 @@ module.exports = function(grunt) {
|
|||
import : 2,
|
||||
'adjoining-classes' : false,
|
||||
'box-model' : false,
|
||||
'box-sizing' : false,
|
||||
'font-sizes' : false,
|
||||
'duplicate-background-images' : false,
|
||||
'ids' : false,
|
||||
'important' : false,
|
||||
|
|
|
|||
|
|
@ -22,10 +22,11 @@ class DebugTest extends \Codeception\TestCase\Test
|
|||
Rhymix\Framework\Debug::$write_to_error_log = false;
|
||||
Rhymix\Framework\Debug::addError(~0, 'Rhymix', $file, $line, null);
|
||||
$errors = Rhymix\Framework\Debug::getErrors();
|
||||
$this->assertEquals(1, count($errors));
|
||||
$this->assertContains('Rhymix', $errors[0]->message);
|
||||
$this->assertEquals($file, $errors[0]->file);
|
||||
$this->assertEquals($line, $errors[0]->line);
|
||||
$this->assertGreaterThanOrEqual(1, count($errors));
|
||||
$error = array_pop($errors);
|
||||
$this->assertContains('Rhymix', $error->message);
|
||||
$this->assertEquals($file, $error->file);
|
||||
$this->assertEquals($line, $error->line);
|
||||
}
|
||||
|
||||
public function testDebugQuery()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue