Example #1
0
 public function testKeepUserModificationsInAuthzFile()
 {
     $header = "# This is an auto generated file! Edit at your own risk!\n# You can edit this \"/\" section. Settings will be kept.\n#\n[/]\n* = r\n\n#\n# Don't edit anything below! All manual changes will be overwritten. \n#\n\n[groups]\n";
     file_put_contents(Zend_Registry::get('config')->subversion->authz, $header);
     $table = new USVN_Db_Table_Groups();
     $table->delete(1);
     $group = $table->fetchNew();
     $group->name = "toto";
     $group->save();
     $file = file_get_contents(Zend_Registry::get('config')->subversion->authz);
     $this->assertContains($header, $file);
 }