Skip to content

Commit 8ec84bf

Browse files
committed
Cleanup unnecessary code
1 parent 262d07b commit 8ec84bf

File tree

4 files changed

+1
-33
lines changed

4 files changed

+1
-33
lines changed

src/MailableReader.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace Stackkit\LaravelDatabaseEmails;
44

55
use Exception;
6-
use function call_user_func_array;
76
use Illuminate\Container\Container;
87

98
class MailableReader

src/Sender.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace Stackkit\LaravelDatabaseEmails;
44

5-
use Exception;
65
use Illuminate\Mail\Message;
76
use Illuminate\Support\Facades\Mail;
87

tests/SendEmailsCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function if_an_email_fails_to_be_sent_it_should_be_logged_in_the_database
6868
$this->artisan('email:send');
6969

7070
$this->assertTrue($email->fresh()->hasFailed());
71-
$this->assertStringContains('RfcComplianceException', $email->fresh()->getError());
71+
$this->assertStringContainsString('RfcComplianceException', $email->fresh()->getError());
7272
}
7373

7474
/** @test */

tests/TestCase.php

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace Tests;
44

5-
use Eloquent;
65
use Stackkit\LaravelDatabaseEmails\Email;
76

87
class TestCase extends \Orchestra\Testbench\TestCase
@@ -32,26 +31,6 @@ function () {
3231
Email::truncate();
3332
}
3433

35-
/**
36-
* Get a database connection instance.
37-
*
38-
* @return \Illuminate\Database\Connection
39-
*/
40-
protected function connection()
41-
{
42-
return Eloquent::getConnectionResolver()->connection();
43-
}
44-
45-
/**
46-
* Get a schema builder instance.
47-
*
48-
* @return \Illuminate\Database\Schema\Builder
49-
*/
50-
protected function schema()
51-
{
52-
return $this->connection()->getSchemaBuilder();
53-
}
54-
5534
/**
5635
* Get package providers. At a minimum this is the package being tested, but also
5736
* would include packages upon which our package depends, e.g. Cartalyst/Sentry
@@ -137,13 +116,4 @@ public function queueEmail($connection = null, $queue = null, $delay = null, $ov
137116
{
138117
return $this->createEmail($overwrite)->queue($connection, $queue, $delay);
139118
}
140-
141-
public function assertStringContains($needle, $haystack)
142-
{
143-
if (method_exists($this, 'assertStringContainsString')) {
144-
$this->assertStringContainsString($needle, $haystack);
145-
} else {
146-
$this->assertContains($needle, $haystack);
147-
}
148-
}
149119
}

0 commit comments

Comments
 (0)