Skip to content

Commit

Permalink
Use more durable assertion.
Browse files Browse the repository at this point in the history
MySQL has length, SQLite does not :(
  • Loading branch information
markstory committed Mar 16, 2014
1 parent 6184831 commit 277acc1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/TestCase/View/Form/EntityContextTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,10 @@ public function testOperationsNoEntity() {
$this->assertFalse($context->hasError('title'));
$this->assertEquals('string', $context->type('title'));
$this->assertEquals([], $context->error('title'));
$this->assertEquals(
['length' => null, 'precision' => null],
$context->attributes('title')
);

$attrs = $context->attributes('title');
$this->assertArrayHasKey('length', $attrs);
$this->assertArrayHasKey('precision', $attrs);
}

/**
Expand Down

0 comments on commit 277acc1

Please sign in to comment.