24 lines
828 B
PHP
24 lines
828 B
PHP
<?php
|
|
|
|
namespace Tests\Unit\View;
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
class TaobaoAlipayBillsTableTest extends TestCase
|
|
{
|
|
public function testTableMatchesTheTwentyFiveAttachmentColumns(): void
|
|
{
|
|
$root = dirname(__DIR__, 3);
|
|
$source = file_get_contents(
|
|
$root . '/resources/assets/js/components/business/TaobaoAlipayBills.vue'
|
|
);
|
|
|
|
$this->assertIsString($source);
|
|
$this->assertStringContainsString('<th colspan="4">基础信息</th>', $source);
|
|
$this->assertStringContainsString('<td :colspan="25"', $source);
|
|
$this->assertStringNotContainsString('<th>财务备注</th>', $source);
|
|
$this->assertStringNotContainsString('<th>订单号</th>', $source);
|
|
$this->assertStringNotContainsString('<th class="tb-num">金额</th>', $source);
|
|
}
|
|
}
|