Changeset 4745
- Timestamp:
- 08/07/08 16:17:05 (11 months ago)
- Files:
-
- 1 modified
-
branches/1.0/tests/Ticket/1304TestCase.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.0/tests/Ticket/1304TestCase.php
r4738 r4745 32 32 class Doctrine_Ticket_1304_TestCase extends Doctrine_UnitTestCase { 33 33 public function prepareTables() { 34 $this->tables[] = 'Doctrine_Ticket_1304_ slug';34 $this->tables[] = 'Doctrine_Ticket_1304_Slug'; 35 35 parent::prepareTables(); 36 36 } … … 40 40 // run 1 41 41 try { 42 $r = new Doctrine_Ticket_1304_ slug();42 $r = new Doctrine_Ticket_1304_Slug(); 43 43 $r->Translation['en']->title = 'Title'; 44 44 $r->Translation['en']->content = 'Content'; … … 51 51 // run 2 52 52 try { 53 $r = new Doctrine_Ticket_1304_ slug();53 $r = new Doctrine_Ticket_1304_Slug(); 54 54 $r->Translation['en']->title = 'Title'; 55 55 $r->Translation['en']->content = 'Content'; … … 62 62 // run 3 63 63 try { 64 $r = new Doctrine_Ticket_1304_ slug();64 $r = new Doctrine_Ticket_1304_Slug(); 65 65 $r->Translation['en']->title = 'Title'; 66 66 $r->Translation['en']->content = 'Content'; … … 73 73 } 74 74 75 class Doctrine_Ticket_1304_ slug extends Doctrine_Record75 class Doctrine_Ticket_1304_Slug extends Doctrine_Record 76 76 { 77 77 public function setTableDefinition() 78 78 { 79 $this->setTableName('Doctrine_Ticket_1304_slug');80 79 $this->hasColumn('title', 'string', 255, array('type' => 'string', 'length' => '255')); 81 80 $this->hasColumn('content', 'string', null, array('type' => 'string')); … … 85 84 { 86 85 $i18n0 = new Doctrine_Template_I18n(array('fields' => array(0 => 'title', 1 => 'content'))); 87 $sluggable1 = new Doctrine_Template_Sluggable(array('fields' => array(0 => 'title') ));86 $sluggable1 = new Doctrine_Template_Sluggable(array('fields' => array(0 => 'title'), 'indexName' => 'i18n_sluggable_test')); 88 87 $i18n0->addChild($sluggable1); 89 88 $this->actAs($i18n0);