Skip to content

Commit

Permalink
fixed wrong merge
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Jan 9, 2015
1 parent 6b17b3a commit 36935c2
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions Tests/Validator/Abstract2Dot5ApiTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,16 +151,16 @@ public function testValidateInSeparateContext()
;

/** @var ConstraintViolationInterface[] $violations */
$test->assertCount(1, $violations);
$test->assertSame('Message value', $violations[0]->getMessage());
$test->assertSame('Message %param%', $violations[0]->getMessageTemplate());
$test->assertSame(array('%param%' => 'value'), $violations[0]->getParameters());
$test->assertSame('', $violations[0]->getPropertyPath());
$this->assertCount(1, $violations);
$this->assertSame('Message value', $violations[0]->getMessage());
$this->assertSame('Message %param%', $violations[0]->getMessageTemplate());
$this->assertSame(array('%param%' => 'value'), $violations[0]->getParameters());
$this->assertSame('', $violations[0]->getPropertyPath());
// The root is different as we're in a new context
$test->assertSame($entity->reference, $violations[0]->getRoot());
$test->assertSame($entity->reference, $violations[0]->getInvalidValue());
$test->assertNull($violations[0]->getPlural());
$test->assertNull($violations[0]->getCode());
$this->assertSame($entity->reference, $violations[0]->getRoot());
$this->assertSame($entity->reference, $violations[0]->getInvalidValue());
$this->assertNull($violations[0]->getPlural());
$this->assertNull($violations[0]->getCode());

// Verify that this method is called
$context->addViolation('Separate violation');
Expand Down

0 comments on commit 36935c2

Please sign in to comment.