You are here

class CompositeFactoryTest in AmazonS3 7.2

Test CompositeFactory.

@class CompositeFactoryTest @package Drupal\amazons3Test

Hierarchy

  • class \Drupal\amazons3Test\CompositeFactoryTest extends \Drupal\amazons3Test\PHPUnit_Framework_TestCase

Expanded class hierarchy of CompositeFactoryTest

File

tests/CompositeFactoryTest.php, line 13

Namespace

Drupal\amazons3Test
View source
class CompositeFactoryTest extends \PHPUnit_Framework_TestCase {

  /**
   * @covers Drupal\amazons3\CompositeFactory::factory
   */
  public function testHooks() {
    $c = new CompositeFactory();
    $c
      ->factory('null-command');
    $this
      ->assertEquals($c
      ->getCallCount('module_invoke_all:amazons3_command_prepare'), 1);
    $this
      ->assertEquals($c
      ->getCallCount('drupal_alter:amazons3_command_prepare'), 1);
    $this
      ->assertEquals($c
      ->getCallCount('drupal_alter:amazons3_command'), 1);
  }

}

Members