Will do, thanks for the tips. Was kinda stuck with the tests (it's so late
that it's already early hehe) and was kinda insecure about PR them like
that. Will fix the tests asap.
Thanks again.


On Wed, Feb 27, 2013 at 5:50 AM, Blaine Schmeisser <notifications@github.com
> wrote:

> In tests/cases/data/ModelTest.php:
>
> > @@ -219,6 +219,33 @@ public function testSchemaInheritance() {
> >  		$this->assertTrue(array_key_exists('price', $result->fields()));
> >  	}
> >
> > +	public function testInitializationInheritance(
> ) {
> > +		$meta = array (
> > +			'name' => 'MockAntiqueForSchemas',
> > +			'source' => 'mock_products',
> > +			'title' => 'name',
> > +			'class' => 'lithium\tests\mocks\data\MockAntiqueForSchemas',
> > +			'connection' => false
> > +		);
> > +		$this->assertEqual($meta, MockAntiqueForSchemas::meta());
> > +
> > +		$this->assertEqual(array('MockCreator'), array_keys(MockAntiqueForSchemas::relations()));
>
> This took me a minute to realize what you were doing.
>
> $this->assertArrayHasKey('MockCreator', MockAntiqueForSchemas::relations());$this->assertCount(1, MockAntiqueForSchemas::relations()); // You may not need to be this specific.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/UnionOfRAD/lithium/pull/837/files#r3166547>
> .
>



-- 
Rui Pedro Lima