mirror of
https://github.com/flarum/core.git
synced 2025-08-10 02:17:37 +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:
@@ -62,7 +62,7 @@ class ApiSerializerTest extends TestCase
|
||||
])
|
||||
);
|
||||
|
||||
$payload = json_decode($response->getBody(), true);
|
||||
$payload = json_decode($response->getBody()->getContents(), true);
|
||||
|
||||
$this->assertArrayNotHasKey('customAttribute', $payload['data']['attributes']);
|
||||
}
|
||||
@@ -89,7 +89,7 @@ class ApiSerializerTest extends TestCase
|
||||
])
|
||||
);
|
||||
|
||||
$payload = json_decode($response->getBody(), true);
|
||||
$payload = json_decode($response->getBody()->getContents(), true);
|
||||
|
||||
$this->assertArrayHasKey('customAttribute', $payload['data']['attributes']);
|
||||
}
|
||||
@@ -112,7 +112,7 @@ class ApiSerializerTest extends TestCase
|
||||
])
|
||||
);
|
||||
|
||||
$payload = json_decode($response->getBody(), true);
|
||||
$payload = json_decode($response->getBody()->getContents(), true);
|
||||
|
||||
$this->assertArrayHasKey('customAttributeFromInvokable', $payload['data']['attributes']);
|
||||
}
|
||||
@@ -139,7 +139,7 @@ class ApiSerializerTest extends TestCase
|
||||
])
|
||||
);
|
||||
|
||||
$payload = json_decode($response->getBody(), true);
|
||||
$payload = json_decode($response->getBody()->getContents(), true);
|
||||
|
||||
$this->assertArrayHasKey('customAttribute', $payload['data']['attributes']);
|
||||
}
|
||||
@@ -172,7 +172,7 @@ class ApiSerializerTest extends TestCase
|
||||
])
|
||||
);
|
||||
|
||||
$payload = json_decode($response->getBody(), true);
|
||||
$payload = json_decode($response->getBody()->getContents(), true);
|
||||
|
||||
$this->assertArrayHasKey('customAttribute', $payload['data']['attributes']);
|
||||
$this->assertEquals('newValue', $payload['data']['attributes']['customAttribute']);
|
||||
@@ -200,7 +200,7 @@ class ApiSerializerTest extends TestCase
|
||||
])
|
||||
);
|
||||
|
||||
$payload = json_decode($response->getBody(), true);
|
||||
$payload = json_decode($response->getBody()->getContents(), true);
|
||||
|
||||
$this->assertArrayHasKey('customSingleAttribute', $payload['data']['attributes']);
|
||||
$this->assertArrayHasKey('customSingleAttribute_0', $payload['data']['attributes']);
|
||||
@@ -225,7 +225,7 @@ class ApiSerializerTest extends TestCase
|
||||
])
|
||||
);
|
||||
|
||||
$payload = json_decode($response->getBody(), true);
|
||||
$payload = json_decode($response->getBody()->getContents(), true);
|
||||
|
||||
$this->assertArrayHasKey('customSingleAttribute_1', $payload['data']['attributes']);
|
||||
}
|
||||
@@ -250,7 +250,7 @@ class ApiSerializerTest extends TestCase
|
||||
])
|
||||
);
|
||||
|
||||
$payload = json_decode($response->getBody(), true);
|
||||
$payload = json_decode($response->getBody()->getContents(), true);
|
||||
|
||||
$this->assertArrayHasKey('customSingleAttribute_2', $payload['data']['attributes']);
|
||||
}
|
||||
@@ -279,7 +279,7 @@ class ApiSerializerTest extends TestCase
|
||||
])
|
||||
);
|
||||
|
||||
$payload = json_decode($response->getBody(), true);
|
||||
$payload = json_decode($response->getBody()->getContents(), true);
|
||||
|
||||
$this->assertArrayHasKey('customSingleAttribute_3', $payload['data']['attributes']);
|
||||
$this->assertEquals('newValue', $payload['data']['attributes']['customSingleAttribute_3']);
|
||||
@@ -312,7 +312,7 @@ class ApiSerializerTest extends TestCase
|
||||
])
|
||||
);
|
||||
|
||||
$payload = json_decode($response->getBody(), true);
|
||||
$payload = json_decode($response->getBody()->getContents(), true);
|
||||
|
||||
$this->assertArrayHasKey('someCustomAttribute', $payload['data']['attributes']);
|
||||
$this->assertEquals('newValue', $payload['data']['attributes']['someCustomAttribute']);
|
||||
|
Reference in New Issue
Block a user