Skip to content

Commit

Permalink
cover changes on tests
Browse files Browse the repository at this point in the history
  • Loading branch information
2amjsouza committed Oct 18, 2023
1 parent b12eaaf commit af27fd8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
14 changes: 13 additions & 1 deletion tests/_app/controllers/SiteController.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,19 @@ public function actions()
return [
'qr' => [
'class' => QrCodeAction::className(),
'text' => (new MailToFormat(['email' => '[email protected]']))
'text' => (new MailToFormat(['email' => '[email protected]'])),
'label' => '2am. Technologies',
'background' => [
'r' => 255,
'g' => 255,
'b' => 255,
],
'foreground' => [
'r' => 0,
'g' => 0,
'b' => 0,
'a' => 100,
],
]
];
}
Expand Down
Binary file modified tests/_data/data-action.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions tests/functional/QrCodeActionCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ public function qrCodeWorks(FunctionalTester $I)
$I->amGoingTo('Call the configured action "qr" and should receive the "png" image.');
$I->amOnRoute('/site/qr');
$source = $I->grabPageSource();

$I->openFile(codecept_data_dir('data-action.png'));
$I->seeInThisFile($source);
}
Expand Down

0 comments on commit af27fd8

Please sign in to comment.