Skip to content

Commit

Permalink
fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
siad007 committed Aug 2, 2014
1 parent d734af0 commit 5eaa19c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function testValidateHappyPath()
$packageCollection = new Collection(array('x', 'y'));
$tagCollection = new Collection(array('package' => $packageCollection));
$this->fileDescriptor->shouldReceive('getTags')->andReturn($tagCollection)->once();
$this->context->shouldReceive('addViolationAt')->once()->with('package', $this->constraint->message);
$this->context->shouldReceive('addViolationAt')->once()->with('package', $this->constraint->message, array(), null, null, $constraint->code);

$this->validator->validate($this->fileDescriptor, $this->constraint);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function testValidateHappyPath()

$this->fileDescriptor->shouldReceive('getTags')->andReturn($tagCollection)->once();

$this->context->shouldReceive('addViolationAt')->once()->with('package', $this->constraint->message);
$this->context->shouldReceive('addViolationAt')->once()->with('package', $this->constraint->message, array(), null, null, $constraint->code);

$this->validator->validate($this->fileDescriptor, $this->constraint);

Expand Down

0 comments on commit 5eaa19c

Please sign in to comment.