mirror of
https://github.com/flarum/core.git
synced 2025-08-11 02:44:04 +02:00
Laravel components v8 (#2576)
- update actions ci - include json for 4 spaces tab - provide output int for process code exit - adhere to parent type hint of builder - mailer instance now needs a name, multiple can be instantiated - getOriginal now uses mutators in the model - Temporarily loosen MailableInterface requirements. This avoids an immediate BC break for classes in extensions that implement this interface. - Temporarily provide (and autoload) old symfony translator interface - make queue exception handler compatible with the contract of L8 - Update phpunit schema for newer version - Update phpunit assert calls for newer version
This commit is contained in:
@@ -41,7 +41,7 @@ class WritablePathsTest extends TestCase
|
||||
|
||||
$problems = $writable->problems();
|
||||
$this->assertCount(1, $problems);
|
||||
$this->assertRegExp(
|
||||
$this->assertMatchesRegularExpression(
|
||||
"%^The .+/tests/fixtures/writable_paths/missing directory doesn't exist$%",
|
||||
$problems[0]['message']
|
||||
);
|
||||
@@ -59,7 +59,7 @@ class WritablePathsTest extends TestCase
|
||||
|
||||
$problems = $writable->problems();
|
||||
$this->assertCount(1, $problems);
|
||||
$this->assertRegExp(
|
||||
$this->assertMatchesRegularExpression(
|
||||
"%^The .+/tests/fixtures/writable_paths/missing directory doesn't exist$%",
|
||||
$problems[0]['message']
|
||||
);
|
||||
|
@@ -56,7 +56,7 @@ class AvatarUploaderTest extends TestCase
|
||||
}
|
||||
$user->syncOriginal();
|
||||
|
||||
$this->assertEquals(null, $user->getOriginal('avatar_url'));
|
||||
$this->assertEquals(null, $user->getRawOriginal('avatar_url'));
|
||||
}
|
||||
|
||||
public function test_removing_url_avatar_removes_no_file()
|
||||
@@ -76,7 +76,7 @@ class AvatarUploaderTest extends TestCase
|
||||
}
|
||||
$user->syncOriginal();
|
||||
|
||||
$this->assertEquals(null, $user->getOriginal('avatar_url'));
|
||||
$this->assertEquals(null, $user->getRawOriginal('avatar_url'));
|
||||
}
|
||||
|
||||
public function test_changing_avatar_removes_file()
|
||||
@@ -97,6 +97,6 @@ class AvatarUploaderTest extends TestCase
|
||||
}
|
||||
$user->syncOriginal();
|
||||
|
||||
$this->assertNotEquals('ABCDEFGHabcdefgh.png', $user->getOriginal('avatar_url'));
|
||||
$this->assertNotEquals('ABCDEFGHabcdefgh.png', $user->getRawOriginal('avatar_url'));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user