public function testRedirectException()
{
self::expectException(InternalServerErrorException::class);
- self::expectErrorMessage('https://friendica.other is not a relative path, please use System::externalRedirect');
+ self::expectExceptionMessage('https://friendica.other is not a relative path, please use System::externalRedirect');
$config = new ReadOnlyFileConfig(new Cache([
'system' => [
$data = json_decode(StaticCookie::$_COOKIE[Cookie::NAME]);
- self::assertObjectHasAttribute('uid', $data);
+ self::assertIsObject($data);
+ self::assertTrue(property_exists($data, 'uid'));
self::assertEquals($uid, $data->uid);
- self::assertObjectHasAttribute('hash', $data);
+ self::assertTrue(property_exists($data, 'hash'));
self::assertEquals($hash, $data->hash);
- self::assertObjectHasAttribute('ip', $data);
+ self::assertTrue(property_exists($data, 'ip'));
self::assertEquals($remoteIp, $data->ip);
self::assertLessThanOrEqual(time() + Cookie::DEFAULT_EXPIRE * 24 * 60 * 60, StaticCookie::$_EXPIRE);