Skip to content

Commit

Permalink
Updated test to correctly reflect the fixed regression
Browse files Browse the repository at this point in the history
  • Loading branch information
David Yell committed Oct 16, 2018
1 parent e55b8ad commit 56786c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/TestCase/Model/Behavior/DuplicatableBehaviorTest.php
Expand Up @@ -188,7 +188,7 @@ public function testDuplicateWithSetters()
$this->Invoices->addBehavior('Duplicatable.Duplicatable', [
'set' => [
'copied' => true,
'name' => 'Example Invoice - copy',
'name' => 'mail',
'contact_name' => function (EntityInterface $entity) {
return strrev($entity->get('contact_name'));
}
Expand All @@ -198,7 +198,7 @@ public function testDuplicateWithSetters()
$result = $this->Invoices->duplicate(1);
$invoice = $this->Invoices->get($result->id);

$this->assertEquals('Example Invoice - copy', $invoice->name);
$this->assertEquals('mail', $invoice->name);
$this->assertEquals('eman tcatnoC', $invoice->contact_name);
$this->assertEquals(1, $invoice->copied);
}
Expand Down

0 comments on commit 56786c7

Please sign in to comment.