Saving of test cases
This commit is contained in:
		
							parent
							
								
									65ccfe23f7
								
							
						
					
					
						commit
						319911d52f
					
				
							
								
								
									
										6
									
								
								src/admin/views/test/tmpl/foo.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								src/admin/views/test/tmpl/foo.php
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,6 @@ | |||||||
|  | <?php | ||||||
|  | 
 | ||||||
|  | // No direct access.
 | ||||||
|  | defined('_JEXEC') or die; | ||||||
|  | 
 | ||||||
|  | // Append &layout=foo to URL
 | ||||||
| @ -21,27 +21,27 @@ class ClubsViewTest extends HtmlView | |||||||
|          |          | ||||||
|         $this->club = $this->clubs[0]; |         $this->club = $this->clubs[0]; | ||||||
|          |          | ||||||
| //         $c = $factory->loadById(1);
 |         $c = $factory->loadById(1); | ||||||
| //         $p = $c->getPresident();
 |         $p = $c->getPresident(); | ||||||
| //         $id = $p->getId();
 |         $id = $p->getId(); | ||||||
|          |          | ||||||
| //         $places = $c->getPlaces();
 |         $places = $c->getPlaces(); | ||||||
| // //         $places[0]->setName("abc");
 | //         $places[0]->setName("abc");
 | ||||||
| // //         $places[0]->save();
 | //         $places[0]->save();
 | ||||||
|          |          | ||||||
| //         $pfactory = new CommonClubsModelFactoryPlace();
 |         $pfactory = new CommonClubsModelFactoryPlace(); | ||||||
| //         $np = $pfactory->createNew();
 |         $np = $pfactory->createNew(); | ||||||
| //         $np->setName('MyName');
 |         $np->setName('MyName'); | ||||||
| //         $np->setClub($c);
 |         $np->setClub($c); | ||||||
| // //         $np->save();
 | //         $np->save();
 | ||||||
| //         $np->getId();
 |         $np->getId(); | ||||||
|          |          | ||||||
| //         $np = $c->getPlaces()[2];
 |         $np = $c->getPlaces()[2]; | ||||||
| //         $np->getName();
 |         $np->getName(); | ||||||
| // //         $np->setName('foo2 with new Name');
 | //         $np->setName('foo2 with new Name');
 | ||||||
| // //         $np->save();
 | //         $np->save();
 | ||||||
| // //         $np->delete();
 | //         $np->delete();
 | ||||||
| //         $this->log = $np;
 |         $this->log = $np; | ||||||
|          |          | ||||||
|         parent::display($tpl); |         parent::display($tpl); | ||||||
|     } |     } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user