X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fgabordemooij%2Fredbean%2Ftesting%2FRedUNIT%2FPostgres%2FBigint.php;fp=vendor%2Fgabordemooij%2Fredbean%2Ftesting%2FRedUNIT%2FPostgres%2FBigint.php;h=0000000000000000000000000000000000000000;hp=c91c48bbbf506ba729e16ecbb7430fb41e349e84;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/vendor/gabordemooij/redbean/testing/RedUNIT/Postgres/Bigint.php b/vendor/gabordemooij/redbean/testing/RedUNIT/Postgres/Bigint.php deleted file mode 100644 index c91c48bbb..000000000 --- a/vendor/gabordemooij/redbean/testing/RedUNIT/Postgres/Bigint.php +++ /dev/null @@ -1,141 +0,0 @@ -id, $book1ID ); - asrt( $book1->title, 'book 1' ); - - $book2 = R::load( 'book', $book2ID ); - - asrt( $book2->id, $book2ID ); - asrt( $book2->title, 'book 2' ); - - asrt( count( $book1->ownPage ), 2 ); - asrt( count( $book1->fresh()->with( 'LIMIT 1' )->ownPage ), 1 ); - asrt( count( $book1->fresh()->withCondition( ' title = ? ', array('page 2 of book 1'))->ownPage ), 1 ); - - asrt( count($book2->ownPage), 1 ); - asrt( $book2->fresh()->countOwn( 'page' ), 1 ); - - $page1 = R::load( 'page', $page1ID ); - asrt( count( $page1->sharedPage ), 0 ); - asrt( $page1->fetchAs( 'book' )->magazine->id, $book2ID ); - - $page2 = R::load( 'page', $page2ID ); - asrt( count($page2->sharedPage), 1 ); - asrt( $page2->fresh()->countShared( 'page' ), 1 ); - - $page3 = R::findOne( 'page', ' title = ? ', array( 'page 1 of book 2' ) ); - asrt( $page3->id, $page3ID ); - asrt( $page3->book->id, $book2ID ); - } -}