You are here

public function ScaldBaseTestCase::testScaldBaseAtomType in Scald: Media Management made easy 7

Test Scald type defaults.

File

tests/scald.test, line 140
Tests for scald.module.

Class

ScaldBaseTestCase
Test the Scald base functionality.

Code

public function testScaldBaseAtomType() {
  module_enable(array(
    'scald_audio',
  ));
  $default = scald_atom_defaults('audio');
  $this
    ->assertEqual($default->thumbnail_source, 'public://atoms/audio.png', 'Default thumbnail for audios set correctly.');
  $this
    ->assertTrue(file_exists($default->thumbnail_source), 'Default thumbnail for audios exists.');
}