PHP Class atk4\data\tests\JoinArrayTest

Inheritance: extends TestCase
Afficher le fichier Open project: atk4/data

Méthodes publiques

Méthode 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 méthode

public testDirection ( )

testDirection2() public méthode

public testDirection2 ( )

testJoinDelete() public méthode

public testJoinDelete ( )

testJoinLoading() public méthode

$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 méthode

public testJoinSaving1 ( )

testJoinSaving2() public méthode

public testJoinSaving2 ( )

testJoinSaving3() public méthode

public testJoinSaving3 ( )

testJoinUpdate() public méthode

public testJoinUpdate ( )

testLoadMissing() public méthode

public testLoadMissing ( )

testMultipleJoins() public méthode

public testMultipleJoins ( )

testReverseJoin() public méthode

public testReverseJoin ( )

testTrickyCases() public méthode

public testTrickyCases ( )