public function testGetModelMap() { $this->assertCount(8, ModelFactory::getModelMap()); foreach (ModelFactory::getModelMap() as $model_name => $model_class) { $this->assertTrue(strpos($model_class, 'Klaviyo\\Model') !== FALSE); } }
/** * Register our model factory with the container. */ protected function registerModelFactory(Container $container) { $container['model.factory.modelMap'] = ModelFactory::getModelMap(); $this->registerModelFactoryDefaultParams($container); $this->registerModelFactoryCreate($container); $this->registerModelFactoryCreateFromJson($container); return $container; }