Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️
PHP attendize-alternativedoor-managementevent-check-inevent-managementevent-registrationevent-ticketingeventbrite-alternativeeventslaravelopen-sourcephpreactself-hostedsell-ticketssell-tickets-onlineticket-sellingticketing-systemtickettailor-alternativetito-alternative
<?php
namespace Tests\Unit\Exports;
use HiEvents\Exports\AnswersExport;
use HiEvents\Services\Domain\Question\QuestionAnswerFormatter;
use Maatwebsite\Excel\Concerns\Export;
use Mockery as m;
use Tests\TestCase;
class AnswersExportTest extends TestCase
{
public function test_export_and_sheets_satisfy_the_excel_export_contract(): void
{
$export = new AnswersExport(m::mock(QuestionAnswerFormatter::class));
$this->assertInstanceOf(Export::class, $export);
$sheets = $export->withData(collect())->sheets();
$this->assertCount(3, $sheets);
$this->assertContainsOnlyInstancesOf(Export::class, $sheets);
}
}