半角スペースを含むタグは受け付けない

This commit is contained in:
shibafu
2020-05-22 00:27:32 +09:00
parent 54b6ff2282
commit 3a2d0e67aa
3 changed files with 15 additions and 0 deletions

View File

@@ -240,6 +240,16 @@ class CheckinCsvImporterTest extends TestCase
$importer->execute();
}
public function testTagCantAcceptWhitespaceUTF8()
{
$user = factory(User::class)->create();
$this->expectException(CsvImportException::class);
$this->expectExceptionMessage('2 行 : タグ1にスペースを含めることはできません。');
$importer = new CheckinCsvImporter($user, __DIR__ . '/../../fixture/Csv/tag-whitespace.utf8.csv');
$importer->execute();
}
public function testTagCanAccept32ColumnsUTF8()
{
$user = factory(User::class)->create();

View File

@@ -0,0 +1,2 @@
日時,タグ1
2020/01/23 06:01,"空白を含む タグ"
1 日時 タグ1
2 2020/01/23 06:01 空白を含む タグ