/** * {@inheritdoc} */ public function supportsClass($class) { return $this->publishWorkflowChecker->supportsClass($class); }
public function testSupportsClass() { $class = 'Test\\Class'; $this->adm->shouldReceive('supportsClass')->once()->with($class)->andReturn(true); $this->assertTrue($this->pwfc->supportsClass($class)); }
public function testSupportsClass() { $class = 'Test\\Class'; $this->adm->expects($this->once())->method('supportsClass')->with($class)->will($this->returnValue(true)); $this->assertTrue($this->pwfc->supportsClass($class)); }