HM\BackUpWordPress\Test_Backup_Path::testExistingPath PHP Метод

testExistingPath() публичный Метод

If there are 1 or more existing paths then the first one of those should be used
public testExistingPath ( )
    public function testExistingPath()
    {
        $paths = $this->generate_additional_paths();
        $this->assertEquals($this->path->get_existing_path(), $paths[0]);
        $this->path->set_path('');
        $this->path->calculate_path();
        $this->assertEquals(Path::get_path(), $this->path->get_existing_path());
        $this->assertFileExists($this->path->get_existing_path());
    }