new API endpoint to save invoice meta-fields (#5916)
This commit is contained in:
@@ -16,6 +16,7 @@ use Faker\Factory;
|
||||
|
||||
/**
|
||||
* Defines the sample data to load in during controller tests.
|
||||
* @implements TestFixture<Activity>
|
||||
*/
|
||||
final class ActivityFixtures implements TestFixture
|
||||
{
|
||||
|
||||
@@ -15,6 +15,7 @@ use Faker\Factory;
|
||||
|
||||
/**
|
||||
* Defines the sample data to load in during controller tests.
|
||||
* @implements TestFixture<Customer>
|
||||
*/
|
||||
final class CustomerFixtures implements TestFixture
|
||||
{
|
||||
|
||||
@@ -12,6 +12,9 @@ namespace App\Tests\DataFixtures;
|
||||
use App\Entity\ExportTemplate;
|
||||
use Doctrine\Persistence\ObjectManager;
|
||||
|
||||
/**
|
||||
* @implements TestFixture<ExportTemplate>
|
||||
*/
|
||||
final class ExportTemplateFixtures implements TestFixture
|
||||
{
|
||||
/**
|
||||
|
||||
@@ -15,6 +15,7 @@ use Faker\Factory;
|
||||
|
||||
/**
|
||||
* Defines the sample data to load in during controller tests.
|
||||
* @implements TestFixture<Invoice>
|
||||
*/
|
||||
class InvoiceFixtures implements TestFixture
|
||||
{
|
||||
|
||||
@@ -16,6 +16,7 @@ use Faker\Factory;
|
||||
|
||||
/**
|
||||
* Defines the sample data to load in during controller tests.
|
||||
* @implements TestFixture<InvoiceTemplate>
|
||||
*/
|
||||
class InvoiceTemplateFixtures implements TestFixture
|
||||
{
|
||||
|
||||
@@ -16,6 +16,7 @@ use Faker\Factory;
|
||||
|
||||
/**
|
||||
* Defines the sample data to load in during controller tests.
|
||||
* @implements TestFixture<Project>
|
||||
*/
|
||||
final class ProjectFixtures implements TestFixture
|
||||
{
|
||||
|
||||
@@ -14,6 +14,7 @@ use Doctrine\Persistence\ObjectManager;
|
||||
|
||||
/**
|
||||
* Defines the sample data to load in during controller tests.
|
||||
* @implements TestFixture<Tag>
|
||||
*/
|
||||
final class TagFixtures implements TestFixture
|
||||
{
|
||||
|
||||
@@ -15,6 +15,7 @@ use Doctrine\Persistence\ObjectManager;
|
||||
|
||||
/**
|
||||
* Defines the sample data to load in during controller tests.
|
||||
* @implements TestFixture<Team>
|
||||
*/
|
||||
final class TeamFixtures implements TestFixture
|
||||
{
|
||||
|
||||
@@ -13,11 +13,14 @@ use Doctrine\Persistence\ObjectManager;
|
||||
|
||||
/**
|
||||
* Defines the sample data to load in during controller tests.
|
||||
* @template TEntity
|
||||
*/
|
||||
interface TestFixture
|
||||
{
|
||||
/**
|
||||
* Load data fixtures with the passed EntityManager and returns the created objects.
|
||||
*
|
||||
* @return non-empty-array<TEntity>
|
||||
*/
|
||||
public function load(ObjectManager $manager): array;
|
||||
}
|
||||
|
||||
@@ -22,6 +22,7 @@ use Faker\Factory;
|
||||
|
||||
/**
|
||||
* Defines the sample data to load in during controller tests.
|
||||
* @implements TestFixture<Timesheet>
|
||||
*/
|
||||
final class TimesheetFixtures implements TestFixture
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user