mirror of
https://github.com/flarum/core.git
synced 2025-08-12 03:14:33 +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:
@@ -34,7 +34,7 @@ class MailTest extends TestCase
|
||||
])
|
||||
);
|
||||
|
||||
$fields = json_decode($response->getBody(), true)['data']['attributes']['fields'];
|
||||
$fields = json_decode($response->getBody()->getContents(), true)['data']['attributes']['fields'];
|
||||
|
||||
// The custom driver does not exist
|
||||
$this->assertArrayNotHasKey('custom', $fields);
|
||||
@@ -65,7 +65,7 @@ class MailTest extends TestCase
|
||||
])
|
||||
);
|
||||
|
||||
$fields = json_decode($response->getBody(), true)['data']['attributes']['fields'];
|
||||
$fields = json_decode($response->getBody()->getContents(), true)['data']['attributes']['fields'];
|
||||
|
||||
$this->assertArrayHasKey('custom', $fields);
|
||||
$this->assertEquals(['customSetting1' => ''], $fields['custom']);
|
||||
@@ -87,7 +87,7 @@ class MailTest extends TestCase
|
||||
])
|
||||
);
|
||||
|
||||
$requiredFields = json_decode($response->getBody(), true)['data']['attributes']['fields']['smtp'];
|
||||
$requiredFields = json_decode($response->getBody()->getContents(), true)['data']['attributes']['fields']['smtp'];
|
||||
|
||||
$this->assertEquals(['customSetting1' => ''], $requiredFields);
|
||||
}
|
||||
|
Reference in New Issue
Block a user