1
0
mirror of synced 2024-12-15 15:46:02 +03:00
doctrine2/tests/UnsortedTestCase.php

30 lines
896 B
PHP
Raw Normal View History

<?php
/**
* Tests in this file are unsorted, and should be placed in an appropriate
* test file. If you are unsure where to put a unit test, place them in here
* and hopefully someone else will move them.
*/
class Doctrine_UnsortedTestCase extends Doctrine_UnitTestCase {
public function testCascadingInsert()
{
$package = new Package();
$package->description = 'Package';
$packageverison = new PackageVersion();
$packageverison->description = 'Version';
$packageverisonnotes = new PackageVersionNotes();
$packageverisonnotes->description = 'Notes';
$package->Version[0] = $packageverison;
$package->Version[0]->Note[0] = $packageverisonnotes;
$package->save();
$this->assertNotNull($package->id);
$this->assertNotNull($package->Version[0]->id);
$this->assertNotNull($package->Version[0]->Note[0]->id);
}
}