for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace hipanel\modules\ticket\tests\acceptance\Seller;
use hipanel\helpers\Url;
use Codeception\Example;
use hipanel\tests\_support\Step\Acceptance\Admin;
use hipanel\modules\ticket\tests\_support\Page\ticket\Create;
class TicketCreationCest
{
/**
* @dataProvider provideTicketData
*/
public function ensureICanCreateTicket(Admin $I, Example $example): void
$I->login();
$this->createTicket($I, $example);
}
private function createTicket(Admin $I,Example $exampleTicket): void
$createPage = new Create($I);
$exampleArray = iterator_to_array($exampleTicket->getIterator());
$createPage->createTicket($exampleArray);
private function provideTicketData(): array
return [
'ticket' => [
'subject' => uniqid(),
'message' => 'someone abuses uniqid ' . uniqid(),
'topic' => [
'topics' => 'Abuse',
'reciever' => 'hipanel_test_admin',
],
];