{ $this->assertInstanceOf (Meeting::class, new Meeting( Uuid:: uuid4(), 'This is a test' , 'This is a test description' , 'M01', new MeetingDuration( new DateTimeImmutable( '2018-02-20 19:00' ), new DateTimeImmutable( '2018-02-20 22:00' ) ) , false, 'This is a test sub title' , new Program([]) )); } } $ vendor/bin/phpunit -c phpunit.xml.dist tests/ PHPUnit 5.7.27 by Sebastian Bergmann and contributors. ........ 8 / 8 (100%) Time: 25 ms, Memory: 4.00MB OK (8 tests, 8 assertions)
{ $this->assertInstanceOf (Meeting::class, new Meeting( Uuid:: uuid4(), new MeetingPresentation( 'This is a test' , 'This is a test description' , 'This is a test sub title' ), 'M01', new MeetingDuration( new DateTimeImmutable( '2018-02-20 19:00' ), new DateTimeImmutable( '2018-02-20 22:00' ) ) , false, new Program([]) )); } } ........ 8 / 8 (100%) Time: 24 ms, Memory: 4.00MB OK (8 tests, 8 assertions)
Ticket[] * * Do a query */ public function getMeetingTickets (Meeting $meeting): array; /** * @param Meeting $meeting * @return array * * Do a query */ public function getNumberOfCurrentSoldTickets (Meeting $meeting): array; /** * @param Ticket $ticket * @param User $user * @return bool * * allowed by user invitation? * allowed by group? * allowed by selection? * Anyway, do a query */ public function checkAllowed(Ticket $ticket, User $user): bool; }
getTicketsUserCanPurchase */ public function getAvailableTickets (Meeting $meeting, bool $publicOnly, User $user, bool $forReserve): array { /**/ } public function getPrivatelyAvailableTickets (Meeting $meeting): array { /**/ } /** @deprecated Use getTicketsUserCanReserve or getTicketsUserCanPurchase */ public function getPubliclyAvailableTickets (Meeting $meeting, User $user, bool $forReserve): array {/**/} public function getTicketsUserCanReserve (Meeting $meeting, User $user): array { /**/ } public function getTicketsUserCanPurchase (Meeting $meeting, User $user): array { /**/ }