Skip to content

Commit

Permalink
Fix patch category
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonge committed Aug 27, 2020
1 parent c0707de commit bf142b7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/Codeception/api/com_contact/ContactCest.php
Expand Up @@ -88,7 +88,9 @@ public function testCrudOnContact(ApiTester $I)
$I->amBearerAuthenticated('c2hhMjU2OjM6ZTJmMjJlYTNlNTU0NmM1MDJhYTIzYzMwN2MxYzAwZTQ5NzJhMWRmOTUyNjY5MTk2YjE5ODJmZWMwZTcxNzgwMQ==');
$I->haveHttpHeader('Content-Type', 'application/json');
$I->haveHttpHeader('Accept', 'application/vnd.api+json');
$I->sendPATCH('/contact/1', ['name' => 'Frankie Blogs', 'state' => -2]);

// Category is a required field for this patch request for now TODO: Remove this dependency
$I->sendPATCH('/contact/1', ['name' => 'Frankie Blogs', 'catid' => 4, 'state' => -2]);
$I->seeResponseCodeIs(HttpCode::OK);

$I->amBearerAuthenticated('c2hhMjU2OjM6ZTJmMjJlYTNlNTU0NmM1MDJhYTIzYzMwN2MxYzAwZTQ5NzJhMWRmOTUyNjY5MTk2YjE5ODJmZWMwZTcxNzgwMQ==');
Expand Down

0 comments on commit bf142b7

Please sign in to comment.