<?php

namespace Orchestra\Tenanti\Tests\Unit\Migrator;

use Mockery as m;
use Orchestra\Tenanti\Migrator\Creator;
use PHPUnit\Framework\TestCase;

class CreatorTest extends TestCase
{
    /**
     * Teardown the test environment.
     */
    protected function tearDown(): void
    {
        m::close();
    }

    /**
     * Test Orchestra\Tenanti\Migrator\Creator::getStubPath()
     * method.
     *
     * @test
     */
    public function testGetStubPath()
    {
        $files = m::mock('Illuminate\Filesystem\Filesystem');

        $stub = new Creator($files);

        $this->assertStringContainsString('src/Migrator/stubs', $stub->stubPath());
    }
}

<?php

namespace Orchestra\Tenanti\Tests\Unit\Migrator;

use Mockery as m;
use Orchestra\Tenanti\Migrator\Creator;
use PHPUnit\Framework\TestCase;

class CreatorTest extends TestCase
{
    /**
     * Teardown the test environment.
     */
    protected function tearDown(): void
    {
        m::close();
    }

    /**
     * Test Orchestra\Tenanti\Migrator\Creator::getStubPath()
     * method.
     *
     * @test
     */
    public function testGetStubPath()
    {
        $files = m::mock('Illuminate\Filesystem\Filesystem');

        $stub = new Creator($files);

        $path = \realpath(__DIR__.'/../../../');

        $this->assertStringContainsString($path.\DIRECTORY_SEPARATOR.'src/Migrator/stubs', $stub->stubPath());
    }
}

Update test to cover windows environment
Update test to cover windows environment

Signed-off-by: Mior Muhammad Zaki <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>
