/** * Tests Wordpress getResponse() method * * Should return a WordpressResponse instance and fake content initialized */ public function testGetResponse() { $this->wordpress->initialize(); $response = $this->wordpress->getResponse(); $this->assertInstanceOf('\\Ekino\\WordpressBundle\\Wordpress\\WordpressResponse', $response, 'Should return a WordpressResponse instance'); $this->assertEquals($this->content, $response->getContent(), 'Wordpress content should be returned'); }