Skip to content

Commit

Permalink
Fix test for default uuid value
Browse files Browse the repository at this point in the history
  Skipped for OrientDB versions:
  - 2.0.13
  - 1.7.10
  • Loading branch information
Ostico committed Nov 8, 2015
1 parent 2213efd commit ec56444
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/PhpOrient/RecordCommandsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,8 @@ public function testRecordData(){
$client = new PhpOrient( 'localhost', 2424 );
$client->connect( 'root', 'root' );

$this->skipTestByOrientDBVersion( [ '2.0.13', '1.7.10' ] );

try {
$client->dbDrop( $db_name, Constants::STORAGE_TYPE_MEMORY );
} catch ( \Exception $e ) {
Expand All @@ -444,7 +446,7 @@ public function testRecordData(){

$client->command( "create class Test extends V" );
$client->command( "create property Test.id string" );
$client->command( "alter property Test.id default uuid()" );
$client->command( "alter property Test.id DEFAULT uuid()" );

$rec = ( new Record() )->setOData( [] )->setRid( new ID( 11 ) );
$record = $client->recordCreate( $rec );
Expand Down

0 comments on commit ec56444

Please sign in to comment.