File tree Expand file tree Collapse file tree 7 files changed +3
-20
lines changed Expand file tree Collapse file tree 7 files changed +3
-20
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
3
use Carbon \Carbon ;
4
- use Illuminated \Testing \Asserts \LogFileAsserts ;
5
- use Illuminated \Testing \InteractsWithConsole ;
6
4
7
5
class FileChannelTest extends TestCase
8
6
{
9
- use InteractsWithConsole;
10
- use LogFileAsserts;
11
-
12
7
/** @test */
13
8
public function it_creates_log_file_according_to_the_command_name_and_current_date ()
14
9
{
Original file line number Diff line number Diff line change 2
2
3
3
use Illuminate \Database \Schema \Blueprint ;
4
4
use Illuminate \Support \Facades \Schema ;
5
- use Illuminated \Testing \Asserts \DatabaseAsserts ;
6
5
use Monolog \Logger ;
7
6
8
7
class DatabaseChannelTest extends TestCase
9
8
{
10
- use DatabaseAsserts;
11
-
12
9
/** @test */
13
10
public function it_is_not_storing_notifications_to_database_if_it_is_disabled ()
14
11
{
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
3
use Illuminated \Console \Loggable \Notifications \EmailChannel \MonologHtmlFormatter ;
4
- use Illuminated \Testing \InteractsWithConsole ;
5
4
use Monolog \Handler \DeduplicationHandler ;
6
5
use Monolog \Handler \MandrillHandler ;
7
6
use Monolog \Handler \NativeMailerHandler ;
10
9
11
10
class EmailChannelTest extends TestCase
12
11
{
13
- use InteractsWithConsole;
14
-
15
12
/** @test */
16
13
public function it_validates_and_filters_notification_recipients ()
17
14
{
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
3
use Illuminated \Console \Loggable \Notifications \EmailChannel \MonologHtmlFormatter ;
4
- use Illuminated \Testing \EmulatesEnvironment ;
5
4
use Monolog \Logger ;
6
5
7
6
class MonologHtmlFormatterTest extends TestCase
8
7
{
9
- use EmulatesEnvironment;
10
-
11
8
/** @test */
12
9
public function it_properly_formats_debug_records ()
13
10
{
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
3
use Illuminated \Console \Exceptions \ExceptionHandler ;
4
- use Illuminated \Testing \Asserts \LogFileAsserts ;
5
4
use Monolog \Handler \RotatingFileHandler ;
6
5
use Psr \Log \LoggerInterface ;
7
6
8
7
class LoggableTraitOnMysqlTest extends TestCase
9
8
{
10
- use LogFileAsserts;
11
-
12
9
protected function setUpDatabase ()
13
10
{
14
11
config ([
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
3
use Illuminated \Console \Exceptions \ExceptionHandler ;
4
- use Illuminated \Testing \Asserts \LogFileAsserts ;
5
4
use Monolog \Handler \RotatingFileHandler ;
6
5
use Psr \Log \LoggerInterface ;
7
6
8
7
class LoggableTraitTest extends TestCase
9
8
{
10
- use LogFileAsserts;
11
-
12
9
/** @test */
13
10
public function it_writes_to_log_file_information_header_each_iteration ()
14
11
{
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
3
use Illuminate \Contracts \Console \Kernel as KernelContract ;
4
+ use Illuminated \Testing \TestingTools ;
4
5
use Symfony \Component \Finder \Finder ;
5
6
6
7
abstract class TestCase extends \Orchestra \Testbench \TestCase
7
8
{
9
+ use TestingTools;
10
+
8
11
protected $ date ;
9
12
10
13
protected function setUp ()
You can’t perform that action at this time.
0 commit comments