ImboUnitTest\Resource\MetadataTest::testSupportsHttpPut PHP Метод

testSupportsHttpPut() публичный Метод

public testSupportsHttpPut ( )
    public function testSupportsHttpPut()
    {
        $metadata = ['foo' => 'bar'];
        $this->request->expects($this->once())->method('getContent')->will($this->returnValue('{"foo":"bar"}'));
        $this->manager->expects($this->at(0))->method('trigger')->with('db.metadata.delete')->will($this->returnSelf());
        $this->manager->expects($this->at(1))->method('trigger')->with('db.metadata.update', ['metadata' => $metadata])->will($this->returnSelf());
        $this->response->expects($this->once())->method('setModel')->with($this->isInstanceOf('Imbo\\Model\\ArrayModel'));
        $this->resource->put($this->event);
    }