Ejemplo n.º 1
0
 public function testGetById()
 {
     $savedModel = self::createBasicModel();
     $res = $savedModel->save();
     if (!$res) {
         print_r($savedModel->getErrors());
         $this->assertTrue(false);
     }
     $model = MailtankMailing::findByPk($savedModel->id);
     $this->assertNotEmpty($model);
     $this->clearUnusedData();
 }