Annotations
Elentra's API contains custom annotations for functional tests that help developers easily create and manage tests.
Transaction Annotations
@transaction
/**
* Test that the route [GET] /exams/questions/groups/authors return 200
*
* @test
* @transaction
* @return void
*/
public function exams_get_method_exams_questions_groups_authors_returns_200(): void
{
$this->actingAsAdmin()
->authenticate()
->get('/exams/questions/groups/authors')@transaction db
/**
* Test that the route [GET] /exams/questions/groups/authors return 200
*
* @test
* @transaction entrada
* @return void
*/
public function exams_get_method_exams_questions_groups_authors_returns_200(): void
{
$this->actingAsAdmin()
->authenticate()
->get('/exams/questions/groups/authors')Snapshot Annotations
@snapshot db
@snapshot db:table
Seed Table Annotations
@seedTable table
@seedTable db:table
Drop Table Annotations
@dropTable db:table
Last updated