Location: PHPKode > scripts > wpStoreCart > wpstorecart/test/nb-wordpress-tests/test_test.php
<?php

class WP_Is_Email_Test extends WP_UnitTestCase {

	function test_is_email_only_letters_with_dot_com_domain() {
		$this->assertEquals( 'hide@address.com', is_email( 'hide@address.com' ) );
	}
	
	function test_is_email_should_not_allow_missing_tld() {
		$this->assertFalse( is_email( 'hide@address.com' ) );
	}
	
	function test_is_email_should_allow_bg_domain() {
		$this->assertEquals( 'hide@address.com', is_email( 'hide@address.com' ) );
	}

}
Return current item: wpStoreCart