Skip to content

Commit 07725b4

Browse files
committed
ICL: New simple integration of testing tools used.
1 parent 2da4096 commit 07725b4

File tree

7 files changed

+3
-20
lines changed

7 files changed

+3
-20
lines changed

tests/Loggable/FileChannel/FileChannelTest.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
<?php
22

33
use Carbon\Carbon;
4-
use Illuminated\Testing\Asserts\LogFileAsserts;
5-
use Illuminated\Testing\InteractsWithConsole;
64

75
class FileChannelTest extends TestCase
86
{
9-
use InteractsWithConsole;
10-
use LogFileAsserts;
11-
127
/** @test */
138
public function it_creates_log_file_according_to_the_command_name_and_current_date()
149
{

tests/Loggable/Notifications/DatabaseChannel/DatabaseChannelTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,10 @@
22

33
use Illuminate\Database\Schema\Blueprint;
44
use Illuminate\Support\Facades\Schema;
5-
use Illuminated\Testing\Asserts\DatabaseAsserts;
65
use Monolog\Logger;
76

87
class DatabaseChannelTest extends TestCase
98
{
10-
use DatabaseAsserts;
11-
129
/** @test */
1310
public function it_is_not_storing_notifications_to_database_if_it_is_disabled()
1411
{

tests/Loggable/Notifications/EmailChannel/EmailChannelTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php
22

33
use Illuminated\Console\Loggable\Notifications\EmailChannel\MonologHtmlFormatter;
4-
use Illuminated\Testing\InteractsWithConsole;
54
use Monolog\Handler\DeduplicationHandler;
65
use Monolog\Handler\MandrillHandler;
76
use Monolog\Handler\NativeMailerHandler;
@@ -10,8 +9,6 @@
109

1110
class EmailChannelTest extends TestCase
1211
{
13-
use InteractsWithConsole;
14-
1512
/** @test */
1613
public function it_validates_and_filters_notification_recipients()
1714
{

tests/Loggable/Notifications/EmailChannel/MonologHtmlFormatterTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
<?php
22

33
use Illuminated\Console\Loggable\Notifications\EmailChannel\MonologHtmlFormatter;
4-
use Illuminated\Testing\EmulatesEnvironment;
54
use Monolog\Logger;
65

76
class MonologHtmlFormatterTest extends TestCase
87
{
9-
use EmulatesEnvironment;
10-
118
/** @test */
129
public function it_properly_formats_debug_records()
1310
{

tests/LoggableTraitOnMysqlTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
<?php
22

33
use Illuminated\Console\Exceptions\ExceptionHandler;
4-
use Illuminated\Testing\Asserts\LogFileAsserts;
54
use Monolog\Handler\RotatingFileHandler;
65
use Psr\Log\LoggerInterface;
76

87
class LoggableTraitOnMysqlTest extends TestCase
98
{
10-
use LogFileAsserts;
11-
129
protected function setUpDatabase()
1310
{
1411
config([

tests/LoggableTraitTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
<?php
22

33
use Illuminated\Console\Exceptions\ExceptionHandler;
4-
use Illuminated\Testing\Asserts\LogFileAsserts;
54
use Monolog\Handler\RotatingFileHandler;
65
use Psr\Log\LoggerInterface;
76

87
class LoggableTraitTest extends TestCase
98
{
10-
use LogFileAsserts;
11-
129
/** @test */
1310
public function it_writes_to_log_file_information_header_each_iteration()
1411
{

tests/TestCase.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
<?php
22

33
use Illuminate\Contracts\Console\Kernel as KernelContract;
4+
use Illuminated\Testing\TestingTools;
45
use Symfony\Component\Finder\Finder;
56

67
abstract class TestCase extends \Orchestra\Testbench\TestCase
78
{
9+
use TestingTools;
10+
811
protected $date;
912

1013
protected function setUp()

0 commit comments

Comments
 (0)