1<?php 2 3namespace dokuwiki\plugin\struct\test; 4 5use dokuwiki\plugin\struct\meta\StructException; 6use dokuwiki\plugin\struct\test\mock\QueryBuilder; 7 8/** 9 * @group plugin_struct 10 * @group plugins 11 */ 12class QueryBuilderTest extends StructTest 13{ 14 15 public function test_join() 16 { 17 $qb = new QueryBuilder(); 18 19 $qb->addTable('first'); 20 $qb->addTable('second'); 21 $qb->addTable('third'); 22 23 $qb->addLeftJoin('second', 'fourth', 'fourth', 'second.foo=fourth.foo'); 24 $this->assertEquals(['first', 'second', 'fourth', 'third'], array_keys($qb->from)); 25 } 26} 27