public function FileAssetTest::testLazyLoading

File

drupal/core/vendor/kriswallsmith/assetic/tests/Assetic/Test/Asset/FileAssetTest.php, line 24

Class

FileAssetTest

Namespace

Assetic\Test\Asset

Code

public function testLazyLoading() {
  $asset = new FileAsset(__FILE__);
  $this
    ->assertEmpty($asset
    ->getContent(), 'The asset content is empty before load');
  $asset
    ->load();
  $this
    ->assertNotEmpty($asset
    ->getContent(), 'The asset content is not empty after load');
}