Skip to content
Permalink
Browse files

Cleanup.

  • Loading branch information...
dereuromark committed Jan 23, 2018
1 parent c6be0ab commit 43f20f01dcea41ecb3104a3e62a20009696165cd
Showing with 2 additions and 6 deletions.
  1. +2 −6 tests/TestCase/ORM/TableTest.php
@@ -6507,15 +6507,13 @@ public function testSaveOrFail()
{
$this->expectException(\Cake\ORM\Exception\PersistenceFailedException::class);
$this->expectExceptionMessage('Entity save failure.');
$entity = new Entity([
'foo' => 'bar'
]);
$table = TableRegistry::get('users');
$table->saveOrFail($entity);
$row = $table->find('all')->where(['foo' => 'bar'])->toArray();
$this->assertSame([], $row->toArray());
}
/**
@@ -6527,6 +6525,7 @@ public function testSaveOrFailErrorDisplay()
{
$this->expectException(\Cake\ORM\Exception\PersistenceFailedException::class);
$this->expectExceptionMessage('Entity save failure (field: "Some message", multiple: "one, two")');
$entity = new Entity([
'foo' => 'bar'
]);
@@ -6535,9 +6534,6 @@ public function testSaveOrFailErrorDisplay()
$table = TableRegistry::get('users');
$table->saveOrFail($entity);
$row = $table->find('all')->where(['foo' => 'bar'])->toArray();
$this->assertSame([], $row->toArray());
}
/**

0 comments on commit 43f20f0

Please sign in to comment.
You can’t perform that action at this time.