Fixes AssetBundleTest for vagrant ENV (#17003)
Fixes AssetBundleTest for vagrant ENV (#17003)

1. There is no need to use setUp/tearDown just for one TestCase method.
2. Previous implementation of testBasePathIsWritableOnPublish() doesn't work in vagrant environment using shared files because of unreliable chmod.

So, this implementation is more versatile and optimized.
yiisoft/yii2,yiichina/yii2,dungphanxuan/yii2,xiaoliwang/yii2,brandonkelly/yii2,dungphanxuan/yii2,xiaoliwang/yii2,vchenin/yii2,bizley/yii2,arogachev/yii2,yiijan/yii2,vchenin/yii2,yiisoft/yii2,LAV45/yii2,yiijan/yii2,rob006/yii2-dev,NabiKAZ/yii2,lubosdz/yii2,rob006/yii2,wujuguang/yii2,fetus-hina/yii2,brandonkelly/yii2,wujuguang/yii2,schmunk42/yii2,mikk150/yii2,mikk150/yii2,vchenin/yii2,SamMousa/yii2,rhertogh/yii2,NabiKAZ/yii2,mikehaertl/yii2,fetus-hina/yii2,bizley/yii2,rhertogh/yii2,mikehaertl/yii2,PowerGamer1/yii2,rob006/yii2,arogachev/yii2,yiijan/yii2,arogachev/yii2,Alex-Code/yii2,PowerGamer1/yii2,dungphanxuan/yii2,mikk150/yii2,schmunk42/yii2,dungphanxuan/yii2,lubosdz/yii2,rob006/yii2,mikk150/yii2,rob006/yii2-dev,schmunk42/yii2,yiichina/yii2,PowerGamer1/yii2,rob006/yii2-dev,LAV45/yii2,LAV45/yii2,bizley/yii2,xiaoliwang/yii2,Alex-Code/yii2,rhertogh/yii2,yiisoft/yii2,rob006/yii2,yiichina/yii2,mikehaertl/yii2,Alex-Code/yii2,PowerGamer1/yii2,SamMousa/yii2,LAV45/yii2,yiijan/yii2,mikk150/yii2,SamMousa/yii2,yiijan/yii2,rob006/yii2-dev,NabiKAZ/yii2,brandonkelly/yii2,wujuguang/yii2,yiisoft/yii2,NabiKAZ/yii2,bizley/yii2,LAV45/yii2,dungphanxuan/yii2,vchenin/yii2,Alex-Code/yii2,xiaoliwang/yii2,wujuguang/yii2,fetus-hina/yii2,SamMousa/yii2,fetus-hina/yii2,yiichina/yii2,schmunk42/yii2,wujuguang/yii2,mikehaertl/yii2,schmunk42/yii2,lubosdz/yii2,rhertogh/yii2,brandonkelly/yii2,yiichina/yii2,lubosdz/yii2,Alex-Code/yii2,NabiKAZ/yii2,SamMousa/yii2,rob006/yii2-dev,arogachev/yii2