public function testDeleteModel()
 {
     $model = new Model1();
     $this->assertTrue($model->save());
     $tagDependency = $model->tagDependency;
     $cacheWithDependencyId = md5(rand());
     $cacheWithoutDependencyId = md5(rand());
     $cache = Yii::$app->cache;
     $this->assertFalse($cache->get($cacheWithDependencyId));
     $this->assertFalse($cache->get($cacheWithoutDependencyId));
     $cache->set($cacheWithDependencyId, 'test', 0, $tagDependency);
     $cache->set($cacheWithoutDependencyId, 'test', 0);
     $this->assertEquals('test', $cache->get($cacheWithDependencyId));
     $this->assertEquals('test', $cache->get($cacheWithoutDependencyId));
     $this->assertEquals(1, $model->delete());
     $this->assertFalse($cache->get($cacheWithDependencyId));
     $this->assertEquals('test', $cache->get($cacheWithoutDependencyId));
 }
 public function testArrayInstance()
 {
     $this->assertEquals(['herroffizier\\yii2artc\\tests\\codeception\\_helpers\\Model1', 'herroffizier\\yii2artc\\tests\\codeception\\_helpers\\Model2'], TagBuilder::buildTags([Model1::className(), Model2::className()]));
 }