Skip to content
Snippets Groups Projects

Dev#53508 ci with docker

Merged Patrick Barroca requested to merge dev#53508_ci_with_docker into master
Compare and
6 files
+ 77
44
Preferences
Compare changes
Files
6
@@ -21,11 +21,26 @@
class Cosmo_IntegrationControllerTestActionTest extends CosmoControllerTestCase {
protected $_service;
public function setUp() {
parent::setUp();
$this->_service = $this->mock()->whenCalled('test')->answers('');
Class_WebService_SIGB_Nanook::setService($this->_service);
}
public function tearDown() {
Class_WebService_SIGB_Nanook::reset();
parent::tearDown();
}
/** @test */
public function responseShouldContainGetHeader() {
public function shouldHaveCalledServiceTestMethod() {
$this->dispatch('/cosmo/integration/test?type=7&options[url_serveur]=' . urlencode('http://localhost/ilsdi'), true);
$this->assertXPathContentContains('//*', 'GET /ilsdi/service/GetRecords/id/1 HTTP/1.1', $this->_response->getBody());
$this->assertTrue($this->_service->methodHasBeenCalled('test'));
}
}