public function testSetContentState() { $handler = $this->getObjectStateHandler(); $gatewayMock = $this->getGatewayMock(); $gatewayMock->expects($this->once())->method('setContentState')->with($this->equalTo(42), $this->equalTo(2), $this->equalTo(2)); $result = $handler->setContentState(42, 2, 2); $this->assertEquals(true, $result); }