/**
* Tests query tagging "has at least one of these tags" functionality.
*/
public function testHasAnyTag() { $query =
$this->connection->
select('test'
);
$query->
addField('test', 'name'
);
$query->
addField('test', 'age', 'age'
);
$query->
addTag('test'
);
$this->
assertTrue($query->
hasAnyTag('test', 'other'
), 'hasAnyTag() returned true.'
);
$this->
assertFalse($query->
hasAnyTag('other', 'stuff'
), 'hasAnyTag() returned false.'
);
} /**
* Confirms that an extended query has a tag added to it.
*/
public function testExtenderHasTag() { $query =
$this->connection->
select('test'
) ->
extend(SelectExtender::
class);
$query->
addField('test', 'name'
);
$query->
addField('test', 'age', 'age'
);