Skip to content

Commit

Permalink
data are not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Dec 27, 2021
1 parent 7f73a63 commit 415bbb2
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions tests/DemosTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -482,18 +482,18 @@ public function testCallbackError(): void
}

$uri = 'obsolete/notify2.php?' . Callback::URL_QUERY_TRIGGER_PREFIX . 'test_notify=ajax&' . Callback::URL_QUERY_TARGET . '=callback_trigger_error';
$data = [
'text' => 'This text will appear in notification',
'icon' => 'warning sign',
'color' => 'green',
'transition' => 'jiggle',
'width' => '25%',
'position' => 'topRight',
'attach' => 'Body',
];
// $data = [
// 'text' => '',
// 'icon' => '',
// 'color' => '',
// 'transition' => '',
// 'width' => '',
// 'position' => '',
// 'attach' => '',
// ];

try {
$response = $this->getResponseFromRequest($uri, ['form_params' => $data]);
$response = $this->getResponseFromRequest($uri, ['form_params' => ['width' => '']]);
} catch (\GuzzleHttp\Exception\ServerException $e) {
$response = $e->getResponse();
}
Expand Down

0 comments on commit 415bbb2

Please sign in to comment.