Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BlogPostsTableTest #2832

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions plugins/bc-blog/tests/TestCase/Model/BlogPostsTableTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
use BaserCore\Test\Factory\UserFactory;
use BaserCore\Test\Scenario\InitAppScenario;
use BaserCore\TestSuite\BcTestCase;
use BaserCore\Utility\BcFolder;
use BcBlog\Model\Table\BlogPostsTable;
use BcBlog\Service\BlogPostsServiceInterface;
use BcBlog\Test\Factory\BlogCategoryFactory;
use BcBlog\Test\Factory\BlogContentFactory;
use BcBlog\Test\Factory\BlogPostFactory;
use BcBlog\Test\Scenario\MultiSiteBlogPostScenario;
use Cake\Filesystem\Folder;
use Cake\I18n\FrozenTime;
use CakephpFixtureFactories\Scenario\ScenarioAwareTrait;

Expand Down Expand Up @@ -634,8 +634,8 @@ public function testCreatePreviewData()
public function testCopyEyeCatch()
{
if (is_dir(WWW_ROOT . '/files/blog/999')) {
$folder = new Folder();
$folder->delete(WWW_ROOT . '/files/blog/999');
$folder = new BcFolder(WWW_ROOT . '/files/blog/999');
$folder->delete();
}
copy(__DIR__ . '/../../Fixture/File/test1.png', __DIR__ . '/../../Fixture/File/test1_.png');
$this->loadFixtureScenario(InitAppScenario::class);
Expand Down Expand Up @@ -702,7 +702,7 @@ public function testCopyEyeCatch()
$this->assertFalse(is_file($fileDir . '/0000000' . $blogPost2no . '_eye_catch__thumb.png'));
$this->assertFalse(is_file($fileDir . '/0000000' . $blogPost2no . '_eye_catch__mobile_thumb.png'));

$dir = new Folder(WWW_ROOT . '/files/blog/999');
$dir = new BcFolder(WWW_ROOT . '/files/blog/999');
$dir->delete();
}

Expand Down