private function elementsEqualsToLangModel() { $this->cleanModelsNotInPost(); // the nummber of multi language elements in post must be equal to ones in // the number of langauge model collections. So It can be sure everything // is ok by the result return $this->picker->getMultilang()->count() === $this->getLangModels()->getQuery()->get()->count(); }
public function testExampleCreateAndUpdateAgain() { $this->obj->import($this->anotherPost); $collaction = $this->obj->getCollection(); $this->assertEquals(7, $collaction->count()); $this->assertEquals('Fransızca Tags', $this->obj->getById(4)->tags); $this->assertEquals('Türkçe Tanımlamalar', $this->obj->getById(1)->meta_desc); $this->assertEquals('Arapça Hakkında', $this->obj->getById(6)->about); $this->assertCount(1, $this->obj->getNonMultilang()); $this->assertCount(6, $this->obj->getMultilang()); }