Skip to content

Commit

Permalink
Fix: Remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Sep 4, 2022
1 parent 96ec644 commit 825e78c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
9 changes: 0 additions & 9 deletions src/Inside/Domain/Shared/FilePath.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,4 @@ public function fileName(): FileName
{
return $this->fileName;
}

public function toString(): string
{
return \sprintf(
'%s/%s',
$this->directory->path()->toString(),
$this->fileName->toString(),
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function testWriteWriteNoteWhenNoteDoesNotHaveFrontMatterAndDirectoryDoes
$noteWriter->write($note);

self::assertFileExists($note->filePath()->path()->toString());
self::assertSame($note->text()->toString(), \file_get_contents($note->filePath()->toString()));
self::assertSame($note->text()->toString(), \file_get_contents($note->filePath()->path()->toString()));
}

public function testWriteWriteNoteWhenNoteDoesNotHaveFrontMatterAndDirectoryExists(): void
Expand Down

0 comments on commit 825e78c

Please sign in to comment.