Skip to content

Commit

Permalink
✅ unit testing fxies
Browse files Browse the repository at this point in the history
  • Loading branch information
acidjazz committed Oct 12, 2020
1 parent dda225b commit f4bdf62
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/MetApiTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function testVerifyError()
$this->assertEquals(
[[
'status' => 400,
'title' => 'name',
'message' => 'name',
'detail' => 'The name field is required.',
]],
$this->ma->errors
Expand All @@ -59,11 +59,11 @@ public function testVerifySuccess()

public function testAddError()
{
$this->ma->error('title', 'detail', 420, true);
$this->ma->error('message', 'detail', 420, true);
$this->assertEquals(
[[
"status" => 420,
"title" => "title",
"message" => "message",
"source" => true,
"detail" => "detail",
]],
Expand Down

0 comments on commit f4bdf62

Please sign in to comment.