Skip to content

Commit

Permalink
Add some stuff to QueryBuilderTest
Browse files Browse the repository at this point in the history
Most things are done in integration tests. Would be nice to test
usage tracking in unit tests as well.
  • Loading branch information
Benestar committed Jun 21, 2015
1 parent 8d2f1e4 commit 5b09e75
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/unit/QueryBuilderTest.php
Expand Up @@ -2,7 +2,6 @@

namespace Asparagus\Tests;

use Asparagus\GraphBuilder;
use Asparagus\QueryBuilder;

/**
Expand Down Expand Up @@ -76,15 +75,15 @@ public function testWhere() {
);
}

public function testPlus() {
public function testAlso() {
$queryBuilder = new QueryBuilder();
$this->assertSame(
$queryBuilder,
$queryBuilder->also( '?a', '?b', '?c' )
);
}

public function testPlus_knownSubject() {
public function testAlso_knownSubject() {
$queryBuilder = new QueryBuilder();
$queryBuilder->where( '?a', '?b', '?c' );
$this->assertSame(
Expand All @@ -93,7 +92,7 @@ public function testPlus_knownSubject() {
);
}

public function testPlus_knownPredicate() {
public function testAlso_knownPredicate() {
$queryBuilder = new QueryBuilder();
$queryBuilder->where( '?a', '?b', '?c' );
$this->assertSame(
Expand Down Expand Up @@ -161,6 +160,7 @@ public function testNewSubquery() {
public function testNewSubgraph() {
$queryBuilder = new QueryBuilder();
$this->assertInstanceOf( 'Asparagus\GraphBuilder', $queryBuilder->newSubgraph() );
$this->assertNotSame( $queryBuilder->newSubgraph(), $queryBuilder->newSubgraph() );
}

public function testGroupBy() {
Expand Down

0 comments on commit 5b09e75

Please sign in to comment.