Skip to content

Commit

Permalink
Dump table when record not found
Browse files Browse the repository at this point in the history
  • Loading branch information
othercorey committed Sep 21, 2020
1 parent 7051064 commit ae63e7c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/TestCase/ORM/Behavior/TranslateBehaviorTest.php
Expand Up @@ -834,7 +834,11 @@ public function testGetAssociationNotDirtyBelongsTo()

$authors->setLocale('eng');

$entity = $table->get(1);
try {
$entity = $table->get(1);
} catch (\Cake\Datasource\Exception\RecordNotFoundException $e) {
var_dump($table->find('all')->all()->toArray());
}
$this->assertNotEmpty($entity);
$entity = $table->loadInto($entity, ['Authors']);
$this->assertFalse($entity->isDirty());
Expand Down

0 comments on commit ae63e7c

Please sign in to comment.