You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kbin-core/tests/ApiTestCase.php

26 lines
674 B
PHP

<?php
declare(strict_types=1);
namespace App\Tests;
use ApiPlatform\Core\Bridge\Symfony\Bundle\Test\ApiTestCase as BaseApiTestCase;
use Doctrine\Common\Collections\ArrayCollection;
abstract class ApiTestCase extends BaseApiTestCase
{
use FactoryTrait;
protected ArrayCollection $users;
protected ArrayCollection $magazines;
protected ArrayCollection $entries;
public function __construct($name = null, array $data = [], $dataName = '')
{
parent::__construct($name, $data, $dataName);
$this->users = new ArrayCollection();
$this->magazines = new ArrayCollection();
$this->entries = new ArrayCollection();
}
}