--- /dev/null
+<?php
+
+class PdoChannelManagerTest extends AlloServeurTest {
+
+ /** @var PdoChannelManager */
+ private $pdoChannelManager;
+
+ protected function setUp() {
+ parent::setUp();
+ $this->pdoChannelManager = new PdoChannelManager();
+ }
+
+ public function testCreate(){
+ $this->pdoChannelManager->edit('test','TEST');
+ $result = $this->pdoChannelManager->getList();
+ $this->assertEquals(2,count($result));
+ }
+
+ public function testUpdate(){
+ $id_channel = $this->pdoChannelManager->edit('prod','TOTO');
+ $this->assertEquals(1,$id_channel);
+ $result = $this->pdoChannelManager->getList();
+ $this->assertEquals('TOTO',$result[0]['libelle']);
+ }
+
+}
\ No newline at end of file