Skip to content
Snippets Groups Projects
Commit 6691b521 authored by Laurent's avatar Laurent
Browse files

hotline #34259 patrons phase: add incremental tests

parent 5dcee5ad
Branches
Tags
7 merge requests!1553Master,!1502Master,!1501Stable,!1472Stable,!1375Master,!1372Hotline master,!1369Hotline#34250 suite problemes infra ftp les imports totaux abonnes ne doivent plus supprimer d abonnes
......@@ -231,6 +231,45 @@ class PhasePatronsInvalidProfilTest extends PhasePatronsTestCase {
class PhasePatronsPartialImportTest extends PhasePatronsTestCase {
public function setUp() {
parent::setUp();
Class_Cosmogramme_Integration::find(999)
->setTypeOperation(Class_Cosmogramme_Integration::TYPE_OPERATION_INCREMENT)
->assertSave();
Class_Users::find(1)
->setIdSite(1)
->setIdSigb(47)
->setIdabon('A-000033')
->assertSave();
$this->_phase->run();
Class_Users::clearCache();
}
/** @test */
public function numberOfPatronsShouldBeFour() {
$this->assertEquals(4, Class_Users::countBy([]));
}
/** @test */
public function userOneShouldBeBarry() {
$this->assertEquals('BARRY', Class_Users::find(1)->getNom());
}
/** @test */
public function usersShouldNotHaveStatusToBeDeleted() {
$this->assertEmpty(Class_Users::findAllBy(['statut' => Class_Users::STATUT_TO_BE_DELETED]));
}
}
class PhasePatronsFullImportXMLTest extends PhasePatronsTestCase {
public function setUp() {
parent::setUp();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment