зеркало из https://github.com/nextcloud/cookbook.git
Added comments to assertions
Signed-off-by: Christian Wolf <github@christianwolf.email>
This commit is contained in:
Родитель
7475ac9995
Коммит
51ac3a8a22
|
@ -77,9 +77,9 @@ class JsonServiceTest extends TestCase{
|
|||
]
|
||||
];
|
||||
$result = $this->service->hasProperty($testData, 'name');
|
||||
self::assertTrue($result);
|
||||
self::assertTrue($result, 'Property name was not found.');
|
||||
$result = $this->service->hasProperty($testData, 'Bar');
|
||||
self::assertFalse($result);
|
||||
self::assertFalse($result, 'Property Bar was falsely found.');
|
||||
|
||||
$result = $this->service->hasProperty(['foo' => 'bar'], 'foo');
|
||||
self::assertFalse($result, 'Property of a non-object must not be returned.');
|
||||
|
|
Загрузка…
Ссылка в новой задаче