Skip to content

Commit c666f89

Browse files
authored
[11.x] Test improvements (#54879)
* [11.x] Test Improvements Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com> * Test Improvements Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com> * wip Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com> * wip Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com> * wip Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com> * wip Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com> * wip Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com> --------- Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
1 parent 1154a31 commit c666f89

15 files changed

+21
-24
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
"league/flysystem-read-only": "^3.25.1",
112112
"league/flysystem-sftp-v3": "^3.25.1",
113113
"mockery/mockery": "^1.6.10",
114-
"orchestra/testbench-core": "^9.9.4",
114+
"orchestra/testbench-core": "^9.11.2",
115115
"pda/pheanstalk": "^5.0.6",
116116
"php-http/discovery": "^1.15",
117117
"phpstan/phpstan": "^2.0",

tests/Integration/Cache/DynamoDbStoreTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function testLocksCanBeAcquired()
6565
* @param \Illuminate\Foundation\Application $app
6666
* @return void
6767
*/
68-
protected function getEnvironmentSetUp($app)
68+
protected function defineEnvironment($app)
6969
{
7070
if (! env('DYNAMODB_CACHE_TABLE')) {
7171
$this->markTestSkipped('DynamoDB not configured.');

tests/Integration/Cookie/CookieTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function test_cookie_is_sent_back_with_proper_expire_time_with_respect_to
4242
$this->assertEquals(Carbon::now()->getTimestamp() + 60, $response->headers->getCookies()[1]->getExpiresTime());
4343
}
4444

45-
protected function getEnvironmentSetUp($app)
45+
protected function defineEnvironment($app)
4646
{
4747
$app->instance(
4848
ExceptionHandler::class,

tests/Integration/Database/EloquentTransactionWithAfterCommitUsingDatabaseTransactionsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ protected function setUp(): void
3232
}
3333
}
3434

35-
protected function getEnvironmentSetUp($app)
35+
protected function defineEnvironment($app)
3636
{
3737
$connection = $app->make('config')->get('database.default');
3838

tests/Integration/Database/MariaDb/DatabaseEmulatePreparesMariaDbConnectionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
#[RequiresPhpExtension('pdo_mysql')]
1111
class DatabaseEmulatePreparesMariaDbConnectionTest extends DatabaseMariaDbConnectionTest
1212
{
13-
protected function getEnvironmentSetUp($app)
13+
protected function defineEnvironment($app)
1414
{
15-
parent::getEnvironmentSetUp($app);
15+
parent::defineEnvironment($app);
1616

1717
$app['config']->set('database.connections.mariadb.options', [
1818
PDO::ATTR_EMULATE_PREPARES => true,

tests/Integration/Database/MySql/DatabaseEmulatePreparesMySqlConnectionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
#[RequiresPhpExtension('pdo_mysql')]
1111
class DatabaseEmulatePreparesMySqlConnectionTest extends DatabaseMySqlConnectionTest
1212
{
13-
protected function getEnvironmentSetUp($app)
13+
protected function defineEnvironment($app)
1414
{
15-
parent::getEnvironmentSetUp($app);
15+
parent::defineEnvironment($app);
1616

1717
$app['config']->set('database.connections.mysql.options', [
1818
PDO::ATTR_EMULATE_PREPARES => true,

tests/Integration/Database/Postgres/PostgresSchemaBuilderTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
#[RequiresPhpExtension('pdo_pgsql')]
1414
class PostgresSchemaBuilderTest extends PostgresTestCase
1515
{
16-
protected function getEnvironmentSetUp($app)
16+
protected function defineEnvironment($app)
1717
{
18-
parent::getEnvironmentSetUp($app);
18+
parent::defineEnvironment($app);
1919

2020
$app['config']->set('database.connections.pgsql.search_path', 'public,private');
2121
}

tests/Integration/Mail/SendingMarkdownMailTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
class SendingMarkdownMailTest extends TestCase
1414
{
15-
protected function getEnvironmentSetUp($app)
15+
protected function defineEnvironment($app)
1616
{
1717
$app['config']->set('mail.driver', 'array');
1818

tests/Integration/Mail/SendingQueuedMailTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
class SendingQueuedMailTest extends TestCase
1313
{
14-
protected function getEnvironmentSetUp($app)
14+
protected function defineEnvironment($app)
1515
{
1616
$app['config']->set('mail.driver', 'array');
1717

tests/Integration/Queue/JobEncryptionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ class JobEncryptionTest extends DatabaseTestCase
2121
{
2222
use DatabaseMigrations;
2323

24-
protected function getEnvironmentSetUp($app)
24+
protected function defineEnvironment($app)
2525
{
26-
parent::getEnvironmentSetUp($app);
26+
parent::defineEnvironment($app);
2727

2828
$app['config']->set('app.key', Str::random(32));
2929
$app['config']->set('queue.default', 'database');

0 commit comments

Comments
 (0)