mirror of
https://github.com/cosmocode/dokuwiki-plugin-struct.git
synced 2025-07-25 16:01:54 +00:00
27 lines
595 B
PHP
27 lines
595 B
PHP
<?php
|
|
|
|
namespace dokuwiki\plugin\struct\test;
|
|
|
|
use dokuwiki\plugin\struct\meta\StructException;
|
|
use dokuwiki\plugin\struct\test\mock\QueryBuilder;
|
|
|
|
/**
|
|
* @group plugin_struct
|
|
* @group plugins
|
|
*/
|
|
class QueryBuilderTest extends StructTest
|
|
{
|
|
|
|
public function test_join()
|
|
{
|
|
$qb = new QueryBuilder();
|
|
|
|
$qb->addTable('first');
|
|
$qb->addTable('second');
|
|
$qb->addTable('third');
|
|
|
|
$qb->addLeftJoin('second', 'fourth', 'fourth', 'second.foo=fourth.foo');
|
|
$this->assertEquals(['first', 'second', 'fourth', 'third'], array_keys($qb->from));
|
|
}
|
|
}
|