/**
  * @covers ::calculateDependencies
  */
 public function testCalculateDependencies()
 {
     $entity = new ResponsiveImageMapping(array('breakpointGroup' => 'test_group'));
     $entity->setBreakpointGroup('test_group');
     $this->breakpointManager->expects($this->any())->method('getGroupProviders')->with('test_group')->willReturn(array('bartik' => 'theme', 'toolbar' => 'module'));
     $dependencies = $entity->calculateDependencies();
     $this->assertContains('toolbar', $dependencies['module']);
     $this->assertContains('bartik', $dependencies['theme']);
 }
 /**
  * @covers ::calculateDependencies
  */
 public function testCalculateDependencies()
 {
     $responsive_image_mapping = new ResponsiveImageMapping(array(), $this->entityTypeId);
     // Set the breakpoint group after creating the entity to avoid the calls
     // in the constructor.
     $responsive_image_mapping->setBreakpointGroup($this->breakpointGroupId);
     $this->breakpointGroup->expects($this->once())->method('getConfigDependencyName')->will($this->returnValue('breakpoint.breakpoint_group.' . $this->breakpointGroupId));
     $dependencies = $responsive_image_mapping->calculateDependencies();
     $this->assertContains('breakpoint.breakpoint_group.' . $this->breakpointGroupId, $dependencies['entity']);
 }