protected function getEnvironmentSetUp($app) { parent::getEnvironmentSetUp($app); $app['config']->set('taggable.normalizer', function ($string) { return strrev($string); }); }
/** * Setup the test environment. * * @return void */ public function setUp() { parent::setUp(); $this->testModelABC = $this->newModel(); $this->testModelABC->tag('Apple,Banana,Cherry'); $this->testModelAB = $this->newModel(); $this->testModelAB->tag('Apple,Banana'); $this->testModelC = $this->newModel(); $this->testModelC->tag('Cherry'); }
protected function getEnvironmentSetUp($app) { parent::getEnvironmentSetUp($app); $app['config']->set('taggable.glue', '.'); }
protected function getEnvironmentSetUp($app) { parent::getEnvironmentSetUp($app); $app['config']->set('taggable.delimiters', '/;,|'); }