Skip to content

Commit

Permalink
Fix patch banner
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonge committed Aug 25, 2020
1 parent fc55695 commit f3fc0e4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/Codeception/api/com_banners/BannerCest.php
Expand Up @@ -95,7 +95,9 @@ public function testCrudOnBanner(ApiTester $I)
$I->amBearerAuthenticated('c2hhMjU2OjM6ZTJmMjJlYTNlNTU0NmM1MDJhYTIzYzMwN2MxYzAwZTQ5NzJhMWRmOTUyNjY5MTk2YjE5ODJmZWMwZTcxNzgwMQ==');
$I->haveHttpHeader('Content-Type', 'application/json');
$I->haveHttpHeader('Accept', 'application/vnd.api+json');
$I->sendPATCH('/banners/1', ['name' => 'Different Custom Advert', 'state' => -2]);

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

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

0 comments on commit f3fc0e4

Please sign in to comment.