public function testDeleteSchema()
 {
     $createSchema = new ParseSchema('SchemaDeleteTest');
     $createSchema->addField('newField01');
     $createSchema->save();
     $deleteSchema = new ParseSchema('SchemaDeleteTest');
     $deleteSchema->delete();
     $getSchema = new ParseSchema('SchemaDeleteTest');
     $this->setExpectedException('Parse\\ParseException', 'class SchemaDeleteTest does not exist');
     $getSchema->get();
 }
Пример #2
0
 public function tearDown()
 {
     $createClass = new ParseSchema('Game');
     $createClass->delete();
     Helper::tearDown();
 }
Пример #3
0
 public function testAssertClassName()
 {
     $schema = new ParseSchema();
     $this->setExpectedException('\\Exception', 'You must set a Class Name before make any request.');
     $schema->assertClassName();
 }