<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Vargant &#8211; Fernando Marichal</title>
	<atom:link href="https://marichal.blog/category/vargant/feed/" rel="self" type="application/rss+xml" />
	<link>https://marichal.blog</link>
	<description>My Blog</description>
	<lastBuildDate>Mon, 30 Mar 2020 18:54:05 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>

<image>
	<url>https://marichal.blog/wp-content/uploads/2020/03/favicon.png</url>
	<title>Vargant &#8211; Fernando Marichal</title>
	<link>https://marichal.blog</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">217996019</site>	<item>
		<title>Symlinks on VVV</title>
		<link>https://marichal.blog/symlinks-on-vvv/</link>
					<comments>https://marichal.blog/symlinks-on-vvv/#respond</comments>
		
		<dc:creator><![CDATA[Fernando]]></dc:creator>
		<pubDate>Sun, 29 Mar 2020 12:57:44 +0000</pubDate>
				<category><![CDATA[Vargant]]></category>
		<category><![CDATA[symlinks]]></category>
		<category><![CDATA[vagrant]]></category>
		<category><![CDATA[vvv]]></category>
		<category><![CDATA[wordpress]]></category>
		<guid isPermaLink="false">https://marichal.blog/?p=115</guid>

					<description><![CDATA[Configure symlinks on a VVV environment.]]></description>
										<content:encoded><![CDATA[
<p>Trying to use outside symlinks in a WordPress environment can be a headache. </p>



<p>If you are using VVV and want to create a symlink (for example, in order to have your plugins folder outside the Vagrant installation), the following is a way to do it.</p>



<p>Go to your <code>./Vagrantfile</code> and add the following code:</p>



<pre class="wp-block-preformatted">if vagrant_version &gt;= "1.3.0"
   config.vm.synced_folder "/Users/path/to/your/plugins/folder/", "/srv/www/wordpress-one/wp-content/plugins", :owner =&gt; "www-data", :mount_options =&gt; [ "dmode=775", "fmode=774" ]
 else
   config.vm.synced_folder "/Users/path/to/your/plugins/folder/", "/srv/www/wordpress-one/wp-content/plugins", :owner =&gt; "www-data", :extra =&gt; 'dmode=775,fmode=774'
 end</pre>



<h3 class="wp-block-heading">Details:</h3>



<ul class="wp-block-list"><li>In the <code>./Vagrantfile</code> you should use the param: <a href="https://www.vagrantup.com/docs/synced-folders/basic_usage.html">config.vm.synced_folder</a></li><li>The first path should point to the folder where you want to keep your plugins</li><li>The second path should point to the <code>Vagrant</code> folder that has the plugins</li></ul>
]]></content:encoded>
					
					<wfw:commentRss>https://marichal.blog/symlinks-on-vvv/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">115</post-id>	</item>
		<item>
		<title>PHPUnit on VVV</title>
		<link>https://marichal.blog/phpunit-on-vvv/</link>
					<comments>https://marichal.blog/phpunit-on-vvv/#respond</comments>
		
		<dc:creator><![CDATA[Fernando]]></dc:creator>
		<pubDate>Sat, 28 Mar 2020 17:58:09 +0000</pubDate>
				<category><![CDATA[Vargant]]></category>
		<guid isPermaLink="false">https://marichal.blog/?p=40</guid>

					<description><![CDATA[If you are developing something for WooCommerce Admin, you will probably want to use PHPUnit. If you are using Vagrant, you will already have everything ready to get started. These are some steps to run PHPUnit on a VVV instance. 1 &#8211; SSH into a running Vagrant machine (more info) with this command: $ vagrant [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>If you are developing something for <code>WooCommerce Admin</code>, you will probably want to use <code>PHPUnit</code>. If you are using Vagrant, you will already have everything ready to get started.</p>



<p>These are some steps to run PHPUnit on a VVV instance.</p>



<p>1 &#8211; SSH into a running Vagrant machine (<a href="https://www.vagrantup.com/docs/cli/ssh.html">more info</a>) with this command:</p>



<pre class="wp-block-preformatted">$ vagrant ssh [instance id]</pre>



<p>2 &#8211; Go to the plugin&#8217;s folder with this command:</p>



<pre class="wp-block-preformatted">$ cd /srv/www/wordpress-one/public_html/wp-content/plugins/woocommerce-admin</pre>



<p>3 &#8211; Update composer:</p>



<pre class="wp-block-preformatted">$ composer update</pre>



<p>4 &#8211; Execute tests:</p>



<pre class="wp-block-preformatted">$ vendor/bin/phpunit</pre>



<p>4.1 &#8211; Install tests if it&#8217;s necessary, running:</p>



<pre class="wp-block-preformatted">$ bin/install-wp-tests.sh 'wordpress-one-test' 'wp' 'wp' 'localhost' '5.3.2' 'true' //dbname=wordpress-one-test user=wp password=wp host=localhost wp-version=5.3.2 skip-database-creation=true</pre>



<p>And try step 4 again.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://marichal.blog/phpunit-on-vvv/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">40</post-id>	</item>
	</channel>
</rss>
