public function assertUpdated(array $expected = null, bool $strict = true): self
    {
        if (is_null($expected)) {
            return $this->assertNoContent();
        }

        return $this->assertFetchedOne($expected, $strict);
    }
public function assertUpdated(array $expected = null, bool $strict = true): self
    {
        if (is_null($expected)) {
            return $this->assertNoContent();
        }

        return $this->assertFetchedOne($expected, $strict);
    }
public function assertUpdated ( array $ expected = null , bool $ strict = true ) : self { if ( is_null ( $ expected ) ) { return $ this -> assertNoContent ( ) ; } return $ this -> assertFetchedOne ( $ expected , $ strict ) ; }
Assert response is a JSON API resource updated response.

For a resource update, we typically expect either:

- 200 OK with resource content; or
- 204 No Content

Alternatively a top-level meta only response is acceptable. If this is expected,
it can be asserted using `assertMetaWithoutData`.

@param array $expected
array representation of the expected resource, or null for a no-content response
@param bool $strict
@return $this
Assert response is a JSON API resource updated response .