JamesMoss\Flywheel\RespositoryTest::testDeletingDocuments PHP Method

testDeletingDocuments() public method

    public function testDeletingDocuments()
    {
        $config = new Config('/tmp/flywheel');
        $repo = new Repository('_pages', $config);
        $id = 'delete_test';
        $name = $id . '.json';
        $path = '/tmp/flywheel/_pages/' . $name;
        file_put_contents($path, '');
        $this->assertTrue(is_file($path));
        $repo->delete($id);
        $this->assertFalse(is_file($path));
    }