/** * @test */ public function shouldNotSupportModelRequestWithModelThatNotAggregateDetails() { $action = new ExecuteSameRequestWithModelDetailsAction(); $requestMock = $this->getMock('Payum\\Core\\Request\\ModelRequestInterface'); $requestMock->expects($this->atLeastOnce())->method('getModel')->will($this->returnValue(new \stdClass())); $this->assertFalse($action->supports($requestMock)); }