assertTrue($this->login()); $this->assertTrue(Auth::check()); $this->actingAs(Auth::user()); $this->assertFalse(config('ldap.cache.enabled')); // Check that it exists $this->assertEquals($dn,$x=config('server')->fetch($dn)); $this->assertTrue($x->exists); // Delete the entry $x->delete(); $this->assertEquals(NULL,config('server')->fetch($dn)); $file = new UploadedFile($import_file,'ldif-import.ldif',null,null,true); $response = $this ->actingAs(Auth::user()) ->from('/import') ->post('/import/process/ldif',[ '_token' => csrf_token(), 'key'=>Crypt::encryptString('*import|_NOP'), 'file' => $file, ]); //$response->dump(); $response->assertSuccessful(); // Check that it hsa been created $this->assertEquals($dn,$x=config('server')->fetch($dn)); $this->assertTrue($x->exists); } }