mirror of
https://github.com/pestphp/pest.git
synced 2026-03-09 09:17:23 +01:00
Revert "Fixes json in Higher Order Expectations"
This commit is contained in:
@ -74,19 +74,8 @@ it('works with higher order tests')
|
||||
->name()->toEqual('Has Methods')
|
||||
->books()->each->toBeArray;
|
||||
|
||||
it('can call the json method in higher order expectations', function () {
|
||||
expect(new HasMethods())
|
||||
->getJsonContent()->json()->id->toBe(1)->toBeGreaterThan(0)
|
||||
->getJsonContent()->json()->email->toBe('foo@bar.com');
|
||||
});
|
||||
|
||||
class HasMethods
|
||||
{
|
||||
public function getJsonContent(): string
|
||||
{
|
||||
return '{"id":1,"username":"dan","email":"foo@bar.com"}';
|
||||
}
|
||||
|
||||
public function name()
|
||||
{
|
||||
return 'Has Methods';
|
||||
|
||||
Reference in New Issue
Block a user