PHP Class atk4\data\tests\JoinArrayTest

Inheritance: extends TestCase
Show file Open project: atk4/data

Public Methods

Method Description
testDirection ( )
testDirection2 ( )
testJoinDelete ( )
testJoinLoading ( ) * public function testJoinSaving4() { $a = ['user'=>[], 'contact'=>[]]; $db = new Persistence_Array($a); $m_u = new Model($db, 'user'); $m_u->addField('name'); $m_u->addField('code'); $j = $m_u->join('contact.code','code'); $j->addField('contact_phone');
testJoinSaving1 ( )
testJoinSaving2 ( )
testJoinSaving3 ( )
testJoinUpdate ( )
testLoadMissing ( )
testMultipleJoins ( )
testReverseJoin ( )
testTrickyCases ( )

Method Details

testDirection() public method

public testDirection ( )

testDirection2() public method

public testDirection2 ( )

testJoinDelete() public method

public testJoinDelete ( )

testJoinLoading() public method

$m_u['name']='John'; $m_u['code']='C28'; $m_u['contact_phone']='+123'; $m_u->save(); $this->assertEquals([ 'user'=>[1=>['id'=>1, 'code'=>'C28', 'name'=>'John']], 'contact'=>[1=>['id'=>1, 'code'=>'C28', 'contact_phone'=>'+123']] ], $a); }
public testJoinLoading ( )

testJoinSaving1() public method

public testJoinSaving1 ( )

testJoinSaving2() public method

public testJoinSaving2 ( )

testJoinSaving3() public method

public testJoinSaving3 ( )

testJoinUpdate() public method

public testJoinUpdate ( )

testLoadMissing() public method

public testLoadMissing ( )

testMultipleJoins() public method

public testMultipleJoins ( )

testReverseJoin() public method

public testReverseJoin ( )

testTrickyCases() public method

public testTrickyCases ( )