Commit 8fd0120ddcd8f6ad517405a075e333e7f9560e20

Authored by Everton Muniz
1 parent 52dce797
Exists in 2.8 and in 6 other branches 2.2, 2.3, 2.4, 2.5, 2.6, 2.7

Cria nova suíte para testes do diário

database/factories/LegacyCompanyFactory.php
... ... @@ -1,17 +0,0 @@
1   -<?php
2   -
3   -use App\Models\LegacyOrganization;
4   -use App\Models\LegacyPerson;
5   -use Faker\Generator as Faker;
6   -
7   -$factory->define(LegacyOrganization::class, function (Faker $faker) {
8   - return [
9   - 'idpes' => factory(LegacyPerson::class)->create(['tipo' => 'J']),
10   - 'cnpj' => $faker->randomNumber(8),
11   - 'origem_gravacao' => $faker->randomElement(['M', 'U', 'C', 'O']),
12   - 'operacao' => $faker->randomElement(['I', 'A', 'E']),
13   - 'idsis_cad' => 1,
14   - 'data_cad' => now(),
15   - 'fantasia' => $faker->name,
16   - ];
17   -});
phpunit.xml
... ... @@ -7,7 +7,8 @@
7 7 convertNoticesToExceptions="true"
8 8 convertWarningsToExceptions="true"
9 9 processIsolation="false"
10   - stopOnFailure="false">
  10 + stopOnFailure="false"
  11 + defaultTestSuite="Unit,Feature">
11 12 <testsuites>
12 13 <testsuite name="Unit">
13 14 <directory suffix="Test.php">./tests/Unit</directory>
... ... @@ -15,6 +16,11 @@
15 16  
16 17 <testsuite name="Feature">
17 18 <directory suffix="Test.php">./tests/Feature</directory>
  19 + <exclude>./tests/Feature/DiarioApi</exclude>
  20 + </testsuite>
  21 +
  22 + <testsuite name="Diario">
  23 + <directory suffix="Test.php">./tests/Feature/DiarioApi</directory>
18 24 </testsuite>
19 25 </testsuites>
20 26 <filter>
... ...