public function CacheableMetadataTest::testCreateFromObject in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Cache/CacheableMetadataTest.php \Drupal\Tests\Core\Cache\CacheableMetadataTest::testCreateFromObject()
- 9 core/tests/Drupal/Tests/Core/Cache/CacheableMetadataTest.php \Drupal\Tests\Core\Cache\CacheableMetadataTest::testCreateFromObject()
@covers ::createFromObject @dataProvider providerTestCreateFromObject
File
- core/
tests/ Drupal/ Tests/ Core/ Cache/ CacheableMetadataTest.php, line 175
Class
- CacheableMetadataTest
- @coversDefaultClass \Drupal\Core\Cache\CacheableMetadata @group Cache
Namespace
Drupal\Tests\Core\CacheCode
public function testCreateFromObject($object, CacheableMetadata $expected) {
$this
->assertEquals($expected, CacheableMetadata::createFromObject($object));
}